From 8880146e3107465f13f40e546f05d008216879a4 Mon Sep 17 00:00:00 2001 From: Andres Taylor Date: Tue, 7 Jan 2025 15:47:28 +0100 Subject: [PATCH] wip --- go/test/endtoend/vtgate/queries/misc/misc_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/go/test/endtoend/vtgate/queries/misc/misc_test.go b/go/test/endtoend/vtgate/queries/misc/misc_test.go index d1547e0fc46..3bb206c4722 100644 --- a/go/test/endtoend/vtgate/queries/misc/misc_test.go +++ b/go/test/endtoend/vtgate/queries/misc/misc_test.go @@ -24,8 +24,6 @@ import ( "testing" "time" - "vitess.io/vitess/go/vt/log" - "vitess.io/vitess/go/mysql" _ "github.com/go-sql-driver/mysql" @@ -195,8 +193,10 @@ func TestSetAndGetLastInsertIDWithInsert(t *testing.T) { defer closer() tests := []string{ - "insert into t1(id1, id2) values (last_insert_id(%d),%d)", + "insert into t1(id1, id2) values (last_insert_id(%d) ,%d)", "insert into t1(id1, id2) values (%d, last_insert_id(%d))", + "insert into t1(id1, id2) select last_insert_id(%d), %d", + "insert into t1(id1, id2) select last_insert_id(id1+%d), 12 from t1 where 1 > %d", } i := 0 @@ -208,7 +208,6 @@ func TestSetAndGetLastInsertIDWithInsert(t *testing.T) { runTests := func(mcmp *utils.MySQLCompare) { for _, test := range tests { query := fmt.Sprintf(test, getVal(), getVal()) - log.Errorf("test: %s", query) mcmp.Exec(query) mcmp.Exec("select last_insert_id()") }