Skip to content

Commit

Permalink
add a bad case
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongjiwei committed Dec 14, 2022
1 parent 1551c09 commit 2c510b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions expression/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2748,6 +2748,8 @@ func TestFuncJSON(t *testing.T) {
tk.MustQuery("select a member of ('\"a\"') 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')")
require.Error(t, err, "ERROR 3140 (22032): Invalid JSON text: The document root must not be followed by other values.")
}

func TestColumnInfoModified(t *testing.T) {
Expand Down

0 comments on commit 2c510b3

Please sign in to comment.