(t *testing.T)
| 2566 | } |
| 2567 | |
| 2568 | func TestMultiResultSetNoSelect(t *testing.T) { |
| 2569 | runTestsWithMultiStatement(t, dsn, func(dbt *DBTest) { |
| 2570 | rows := dbt.mustQuery("DO 1; DO 2;") |
| 2571 | defer rows.Close() |
| 2572 | |
| 2573 | if rows.Next() { |
| 2574 | dbt.Error("unexpected row") |
| 2575 | } |
| 2576 | |
| 2577 | if rows.NextResultSet() { |
| 2578 | dbt.Error("unexpected next result set") |
| 2579 | } |
| 2580 | |
| 2581 | if err := rows.Err(); err != nil { |
| 2582 | dbt.Error("expected nil; got ", err) |
| 2583 | } |
| 2584 | }) |
| 2585 | } |
| 2586 | |
| 2587 | func TestExecMultipleResults(t *testing.T) { |
| 2588 | ctx := context.Background() |
nothing calls this directly
no test coverage detected