|
15 | 15 | package queries |
16 | 16 |
|
17 | 17 | import ( |
| 18 | + "github.com/dolthub/vitess/go/mysql" |
| 19 | + |
18 | 20 | "github.com/dolthub/go-mysql-server/sql" |
19 | 21 | "github.com/dolthub/go-mysql-server/sql/types" |
20 | | - "github.com/dolthub/vitess/go/mysql" |
21 | 22 | ) |
22 | 23 |
|
23 | 24 | var AlterTableScripts = []ScriptTest{ |
@@ -309,26 +310,26 @@ var AlterTableScripts = []ScriptTest{ |
309 | 310 | }, |
310 | 311 | }, |
311 | 312 | { |
312 | | - Query: "INSERT INTO t40 VALUES (NULL, 4)", |
| 313 | + Query: "INSERT INTO t40 VALUES (NULL, 4)", |
313 | 314 | ExpectedErr: sql.ErrInsertIntoNonNullableProvidedNull, |
314 | 315 | }, |
315 | 316 | { |
316 | 317 | Query: "drop table t40", |
317 | | - Expected: []sql.Row{{types.NewOkResult(0)}}, |
| 318 | + Expected: []sql.Row{{types.NewOkResult(0)}}, |
318 | 319 | }, |
319 | 320 | { |
320 | 321 | Query: "CREATE TABLE t40 (pk int AUTO_INCREMENT PRIMARY KEY, val int)", |
321 | | - Expected: []sql.Row{{types.NewOkResult(0)}}, |
| 322 | + Expected: []sql.Row{{types.NewOkResult(0)}}, |
322 | 323 | }, |
323 | 324 | { |
324 | | - Query: "INSERT INTO t40 VALUES (NULL, 1)", |
325 | | - Expected: []sql.Row{{types.OkResult{ |
| 325 | + Query: "INSERT INTO t40 VALUES (NULL, 1)", |
| 326 | + Expected: []sql.Row{{types.OkResult{ |
326 | 327 | RowsAffected: 1, |
327 | 328 | InsertID: 1, |
328 | 329 | }}}, |
329 | 330 | }, |
330 | 331 | { |
331 | | - Query: "SELECT * FROM t40", |
| 332 | + Query: "SELECT * FROM t40", |
332 | 333 | Expected: []sql.Row{{1, 1}}, |
333 | 334 | }, |
334 | 335 | }, |
|
0 commit comments