Skip to content

Commit a0a63dd

Browse files
committed
fix: make SET system type case-insensitive
1 parent 77ed13c commit a0a63dd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

enginetest/queries/insert_queries.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,10 +1278,10 @@ var InsertScripts = []ScriptTest{
12781278
},
12791279
},
12801280
{
1281-
Name: "sql_mode=NO_AUTO_VALUE_ON_ZERO",
1281+
Name: "sql_mode=NO_auto_value_ON_ZERO",
12821282
SetUpScript: []string{
12831283
"set @old_sql_mode=@@sql_mode;",
1284-
"set @@sql_mode='NO_AUTO_VALUE_ON_ZERO';",
1284+
"set @@sql_mode='NO_auto_value_ON_ZERO';",
12851285
"create table auto (i int auto_increment, index (i));",
12861286
"create table auto_pk (i int auto_increment primary key);",
12871287
},

sql/types/system_set.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var _ sql.CollationCoercible = systemSetType{}
3535

3636
// NewSystemSetType returns a new systemSetType.
3737
func NewSystemSetType(varName string, values ...string) sql.SystemVariableType {
38-
return systemSetType{MustCreateSetType(values, sql.Collation_Default), varName}
38+
return systemSetType{MustCreateSetType(values, sql.Collation_ascii_general_ci), varName}
3939
}
4040

4141
// Compare implements Type interface.

0 commit comments

Comments
 (0)