@@ -1112,19 +1112,19 @@ var FunctionQueryTests = []QueryTest{
11121112 {
11131113 Query : `SELECT JSON_ARRAY(pk, c1, c2, c3) FROM jsontable` ,
11141114 Expected : []sql.Row {
1115- {types .MustJSON (`[1, "one", 1.0 , {"a": 2}]` )},
1116- {types .MustJSON (`[2, "two", 1.5 , {"b": 2}]` )},
1117- {types .MustJSON (`[3, "three", 2.0 , {"c": 2}]` )},
1118- {types .MustJSON (`[4, "four", 2.5 , {"d": 2}]` )},
1115+ {types .MustJSON (`[1, "row one", [1, 2] , {"a": 2}]` )},
1116+ {types .MustJSON (`[2, "row two", [3, 4] , {"b": 2}]` )},
1117+ {types .MustJSON (`[3, "row three", [5, 6] , {"c": 2}]` )},
1118+ {types .MustJSON (`[4, "row four", [7, 8] , {"d": 2}]` )},
11191119 },
11201120 },
11211121 {
11221122 Query : `SELECT JSON_ARRAY(JSON_OBJECT("id", pk, "name", c1), c2, c3) FROM jsontable` ,
11231123 Expected : []sql.Row {
1124- {types .MustJSON (`[{"id": 1, "name": "one"}, 1.0 , {"a": 2}]` )},
1125- {types .MustJSON (`[{"id": 2, "name": "two"}, 1.5 , {"b": 2}]` )},
1126- {types .MustJSON (`[{"id": 3, "name": "three"}, 2.0 , {"c": 2}]` )},
1127- {types .MustJSON (`[{"id": 4, "name": "four"}, 2.5 , {"d": 2}]` )},
1124+ {types .MustJSON (`[{"id": 1,"name": "row one"}, [1, 2] , {"a": 2}]` )},
1125+ {types .MustJSON (`[{"id": 2,"name": "row two"}, [3, 4] , {"b": 2}]` )},
1126+ {types .MustJSON (`[{"id": 3,"name": "row three"}, [5, 6] , {"c": 2}]` )},
1127+ {types .MustJSON (`[{"id": 4,"name": "row four"}, [7, 8] , {"d": 2}]` )},
11281128 },
11291129 },
11301130 {
@@ -1240,10 +1240,6 @@ var FunctionQueryTests = []QueryTest{
12401240 Query : `SELECT JSON_UNQUOTE('"\\t\\u0032"')` ,
12411241 Expected : []sql.Row {{"\t 2" }},
12421242 },
1243- {
1244- Query : `SELECT JSON_UNQUOTE('"\t\\u0032"')` ,
1245- Expected : []sql.Row {{"\t \\ u0032" }},
1246- },
12471243 {
12481244 Query : `SELECT JSON_UNQUOTE(JSON_EXTRACT('{"xid":"hello"}', '$.xid')) = "hello"` ,
12491245 Expected : []sql.Row {{true }},
0 commit comments