Skip to content

Commit

Permalink
update failing test assertion
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Taylor <andres@planetscale.com>
  • Loading branch information
systay committed Oct 30, 2020
1 parent 6f17514 commit 5b1234b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go/test/endtoend/vtgate/unsharded/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func TestInsertAllDefaults(t *testing.T) {
defer conn.Close()

exec(t, conn, `insert into allDefaults () values ()`)
assertMatches(t, conn, `select * from allDefaults`, `"[[INT64(1) NULL]]"`)
assertMatches(t, conn, `select * from allDefaults`, "[[INT64(1) NULL]]")
}

func exec(t *testing.T, conn *mysql.Conn, query string) *sqltypes.Result {
Expand Down
17 changes: 16 additions & 1 deletion go/vt/vtgate/planbuilder/testdata/dml_cases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,22 @@

# insert sharded, no values
"insert into user values()"
"no column list"
{
"QueryType": "INSERT",
"Original": "insert into user values()",
"Instructions": {
"OperatorType": "Insert",
"Variant": "Sharded",
"Keyspace": {
"Name": "user",
"Sharded": true
},
"TargetTabletType": "MASTER",
"MultiShardAutocommit": false,
"Query": "insert into user(id, Name, Costly) values (:_Id_0, :_Name_0, :_Costly_0)",
"TableName": "user"
}
}

# insert with one vindex
"insert into user(id) values (1)"
Expand Down

0 comments on commit 5b1234b

Please sign in to comment.