Skip to content

Commit 7c2fb42

Browse files
author
James Cor
committed
test not skipped anymore
1 parent bf80cf0 commit 7c2fb42

File tree

1 file changed

+29
-30
lines changed

1 file changed

+29
-30
lines changed

enginetest/queries/script_queries.go

Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2931,6 +2931,35 @@ var ScriptTests = []ScriptTest{
29312931
},
29322932
},
29332933
},
2934+
{
2935+
Name: "find_in_set tests",
2936+
SetUpScript: []string{
2937+
"create table collate_tbl (i int primary key, s varchar(10) collate utf8mb4_0900_ai_ci);",
2938+
"insert into collate_tbl values (0, '');",
2939+
"insert into collate_tbl values (1, 'a');",
2940+
"insert into collate_tbl values (2, 'b');",
2941+
"insert into collate_tbl values (3, 'c');",
2942+
"insert into collate_tbl values (4, 'a,b');",
2943+
"insert into collate_tbl values (6, 'b,c');",
2944+
"insert into collate_tbl values (7, 'a,c');",
2945+
"insert into collate_tbl values (8, 'a,b,c');",
2946+
},
2947+
Assertions: []ScriptTestAssertion{
2948+
{
2949+
Query: "select i, find_in_set('A', s) from collate_tbl;",
2950+
Expected: []sql.Row{
2951+
{0, 0},
2952+
{1, 1},
2953+
{2, 0},
2954+
{3, 0},
2955+
{4, 1},
2956+
{6, 0},
2957+
{7, 1},
2958+
{8, 1},
2959+
},
2960+
},
2961+
},
2962+
},
29342963
}
29352964

29362965
var SpatialScriptTests = []ScriptTest{
@@ -4132,34 +4161,4 @@ var BrokenScriptTests = []ScriptTest{
41324161
},
41334162
},
41344163
},
4135-
// TODO: we don't look at the collation for tables
4136-
{
4137-
Name: "find_in_set tests",
4138-
SetUpScript: []string{
4139-
"create table collate_tbl (i int primary key, s varchar(10) collate utf8mb4_0900_ai_ci);",
4140-
"insert into collate_tbl values (0, '');",
4141-
"insert into collate_tbl values (1, 'a');",
4142-
"insert into collate_tbl values (2, 'b');",
4143-
"insert into collate_tbl values (3, 'c');",
4144-
"insert into collate_tbl values (4, 'a,b');",
4145-
"insert into collate_tbl values (6, 'b,c');",
4146-
"insert into collate_tbl values (7, 'a,c');",
4147-
"insert into collate_tbl values (8, 'a,b,c');",
4148-
},
4149-
Assertions: []ScriptTestAssertion{
4150-
{
4151-
Query: "select i, find_in_set('A', s) from collate_tbl;",
4152-
Expected: []sql.Row{
4153-
{0, 0},
4154-
{1, 1},
4155-
{2, 0},
4156-
{3, 0},
4157-
{4, 1},
4158-
{6, 0},
4159-
{7, 1},
4160-
{8, 1},
4161-
},
4162-
},
4163-
},
4164-
},
41654164
}

0 commit comments

Comments
 (0)