Skip to content

Commit 217752b

Browse files
committed
moved unknown sys variable test into VariableErrorsTests
1 parent 46366b5 commit 217752b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

enginetest/queries/variable_queries.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ import (
2222
)
2323

2424
var VariableQueries = []ScriptTest{
25-
{
26-
Name: "use string name for foreign_key checks",
27-
SetUpScript: []string{},
28-
Query: "select @@GLOBAL.unknown",
29-
ExpectedErr: sql.ErrUnknownSystemVariable,
30-
},
3125
{
3226
Name: "use string name for foreign_key checks",
3327
SetUpScript: []string{},
@@ -649,6 +643,10 @@ var VariableQueries = []ScriptTest{
649643
}
650644

651645
var VariableErrorTests = []QueryErrorTest{
646+
{
647+
Query: "select @@GLOBAL.unknown",
648+
ExpectedErr: sql.ErrUnknownSystemVariable,
649+
},
652650
{
653651
Query: "set @@does_not_exist = 100",
654652
ExpectedErr: sql.ErrUnknownSystemVariable,

0 commit comments

Comments
 (0)