MCPcopy
hub / github.com/go-sql-driver/mysql / error

Method error

connection.go:197–205  ·  connection.go::mysqlConn.error
()

Source from the content-addressed store, hash-verified

195}
196
197func (mc *mysqlConn) error() error {
198 if mc.closed.Load() {
199 if err := mc.canceled.Value(); err != nil {
200 return err
201 }
202 return ErrInvalidConn
203 }
204 return nil
205}
206
207func (mc *mysqlConn) Prepare(query string) (driver.Stmt, error) {
208 if mc.closed.Load() {

Callers 6

CloseMethod · 0.80
nextResultSetMethod · 0.80
NextMethod · 0.80
NextMethod · 0.80
CommitMethod · 0.80
RollbackMethod · 0.80

Calls 1

ValueMethod · 0.45

Tested by

no test coverage detected