Skip to content

Commit 13cb67d

Browse files
author
James Cor
committed
adding skipped tests
1 parent e03d7bd commit 13cb67d

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

enginetest/queries/script_queries.go

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7546,6 +7546,51 @@ where
75467546
{3, "ghi"},
75477547
},
75487548
},
7549+
{
7550+
Skip: true,
7551+
Query: "select i, (case e when 'abc' then e when 'def' then e when 'ghi' then 'something' end) as e from t;",
7552+
Expected: []sql.Row{
7553+
{1, "abc"},
7554+
{2, "def"},
7555+
{3, "something"},
7556+
},
7557+
},
7558+
{
7559+
Skip: true,
7560+
Query: "select i, (case e when 'abc' then e when 'def' then e when 'ghi' then 123 end) as e from t;",
7561+
Expected: []sql.Row{
7562+
{1, "abc"},
7563+
{2, "def"},
7564+
{3, "123"},
7565+
},
7566+
},
7567+
},
7568+
},
7569+
{
7570+
Name: "enum cast to int and string",
7571+
SetUpScript: []string{
7572+
"create table t (i int primary key, e enum('abc', 'def', 'ghi'));",
7573+
"insert into t values (1, 'abc'), (2, 'def'), (3, 'ghi');",
7574+
},
7575+
Assertions: []ScriptTestAssertion{
7576+
{
7577+
Skip: true,
7578+
Query: "select i, cast(e as signed) from t;",
7579+
Expected: []sql.Row{
7580+
{1, 1},
7581+
{2, 2},
7582+
{3, 3},
7583+
},
7584+
},
7585+
{
7586+
Skip: true,
7587+
Query: "select i, cast(e as char) from t;",
7588+
Expected: []sql.Row{
7589+
{1, "abc"},
7590+
{2, "def"},
7591+
{3, "ghi"},
7592+
},
7593+
},
75497594
},
75507595
},
75517596
}

0 commit comments

Comments
 (0)