Skip to content

Commit

Permalink
add a good case
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongjiwei committed Dec 14, 2022
1 parent 2c510b3 commit c6c8ab1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions expression/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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')")
Expand Down

0 comments on commit c6c8ab1

Please sign in to comment.