From 96ea5aac0c9a0eacd374d89ccce1b07055557026 Mon Sep 17 00:00:00 2001 From: James Cor Date: Thu, 19 Sep 2024 14:28:47 -0700 Subject: [PATCH] fix tests --- go/vt/sqlparser/parse_test.go | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/go/vt/sqlparser/parse_test.go b/go/vt/sqlparser/parse_test.go index 86175b2546d..4e7ab44c442 100644 --- a/go/vt/sqlparser/parse_test.go +++ b/go/vt/sqlparser/parse_test.go @@ -4215,6 +4215,13 @@ var ( input: "select * from (values row(date '2020-10-01', time '12:34:56', timestamp '2001-02-03 12:34:56')) t;", output: "select * from (values row('2020-10-01', '12:34:56', '2001-02-03 12:34:56')) as t", }, + { + input: "set @@global.validate_password.length = 1", + output: "set global validate_password.length = 1", + }, + { + input: "set @@session.validate_password.length = 1", + }, } // Any tests that contain multiple statements within the body (such as BEGIN/END blocks) should go here. @@ -7775,10 +7782,7 @@ var ( output: "syntax error at position 16 near '@@session.'", }, { input: "set xyz.@autocommit = true", - output: "invalid user variable declaration `@autocommit` at position 27 near 'true'", - }, { - input: "set @@session.validate_password.length = 1", - output: "invalid system variable declaration `length` at position 43 near '1'", + output: "invalid system variable declaration `@autocommit` at position 27 near 'true'", }, { input: "set session.@@validate_password.length = 1", output: "invalid system variable declaration `@@validate_password.length` at position 43 near '1'", @@ -7808,7 +7812,7 @@ var ( output: "invalid system variable declaration `@@autocommit` at position 38 near 'true'", }, { input: "set session other.@autocommit = true", - output: "invalid user variable declaration `@autocommit` at position 37 near 'true'", + output: "invalid system variable declaration `@autocommit` at position 37 near 'true'", }, { input: "select * from foo limit -100", output: "syntax error at position 26 near 'limit'",