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

Function runCallCommand

driver_test.go:3595–3611  ·  view source on GitHub ↗
(dbt *DBTest, query, name string)

Source from the content-addressed store, hash-verified

3593}
3594
3595func runCallCommand(dbt *DBTest, query, name string) {
3596 dbt.mustExec(fmt.Sprintf("DROP PROCEDURE IF EXISTS %s", name))
3597 dbt.mustExec(query)
3598 defer dbt.mustExec("DROP PROCEDURE " + name)
3599 rows, err := dbt.db.Query(fmt.Sprintf("CALL %s", name))
3600 if err != nil {
3601 return
3602 }
3603 defer rows.Close()
3604
3605 for rows.Next() {
3606 }
3607 for rows.NextResultSet() {
3608 for rows.Next() {
3609 }
3610 }
3611}
3612
3613func TestIssue1567(t *testing.T) {
3614 // enable TLS.

Callers 1

TestErrorInMultiResultFunction · 0.85

Calls 5

mustExecMethod · 0.80
QueryMethod · 0.45
CloseMethod · 0.45
NextMethod · 0.45
NextResultSetMethod · 0.45

Tested by

no test coverage detected