Skip to content

Commit 0dfd711

Browse files
committed
Restore deleted tests
1 parent 7d2292c commit 0dfd711

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

enginetest/queries/function_queries.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,6 +1240,10 @@ var FunctionQueryTests = []QueryTest{
12401240
Query: `SELECT JSON_UNQUOTE('"\\t\\u0032"')`,
12411241
Expected: []sql.Row{{"\t2"}},
12421242
},
1243+
{
1244+
Query: `SELECT JSON_UNQUOTE('"\t\\u0032"')`,
1245+
Expected: []sql.Row{{"\t2"}},
1246+
},
12431247
{
12441248
Query: `SELECT JSON_UNQUOTE(JSON_EXTRACT('{"xid":"hello"}', '$.xid')) = "hello"`,
12451249
Expected: []sql.Row{{true}},
@@ -1404,6 +1408,10 @@ var FunctionQueryTests = []QueryTest{
14041408
Query: "SELECT '2018-05-02' + INTERVAL 1 DAY",
14051409
Expected: []sql.Row{{time.Date(2018, time.May, 3, 0, 0, 0, 0, time.UTC)}},
14061410
},
1411+
{
1412+
Query: "SELECT '2018-05-02' - INTERVAL 1 DAY",
1413+
Expected: []sql.Row{{time.Date(2018, time.May, 1, 0, 0, 0, 0, time.UTC)}},
1414+
},
14071415
{
14081416
Query: "SELECT CONVERT('9999-12-31 23:59:59', DATETIME)",
14091417
Expected: []sql.Row{{time.Date(9999, time.December, 31, 23, 59, 59, 0, time.UTC)}},

0 commit comments

Comments
 (0)