Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
systay committed Jan 7, 2025
1 parent 4f0f8f5 commit 8880146
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions go/test/endtoend/vtgate/queries/misc/misc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ import (
"testing"
"time"

"vitess.io/vitess/go/vt/log"

"vitess.io/vitess/go/mysql"

_ "github.com/go-sql-driver/mysql"
Expand Down Expand Up @@ -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
Expand All @@ -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()")
}
Expand Down

0 comments on commit 8880146

Please sign in to comment.