From c6c8ab16f3711b5d70ba0ae79a618db5fa8b35f9 Mon Sep 17 00:00:00 2001 From: xiongjiwei Date: Wed, 14 Dec 2022 16:48:07 +0800 Subject: [PATCH] add a good case --- expression/integration_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/expression/integration_test.go b/expression/integration_test.go index 09bbd631d973d..791500cc40cc4 100644 --- a/expression/integration_test.go +++ b/expression/integration_test.go @@ -2746,6 +2746,7 @@ func TestFuncJSON(t *testing.T) { tk.MustExec("create table t(a enum('a', 'b'), b time, c binary(10))") tk.MustExec("insert into t values ('a', '11:00:00', 'a')") tk.MustQuery("select a member of ('\"a\"') from t").Check(testkit.Rows(`1`)) + tk.MustQuery("select b member of (json_array(cast('11:00:00' as time))) from t;").Check(testkit.Rows(`1`)) tk.MustQuery("select b member of ('\"11:00:00\"') from t").Check(testkit.Rows(`0`)) tk.MustQuery("select c member of ('\"a\"') from t").Check(testkit.Rows(`0`)) err = tk.QueryToErr("select 'a' member of ('a')")