From dbb271507eb23042c5bf0aea647005f29981c6ca Mon Sep 17 00:00:00 2001 From: Bob Liu Date: Thu, 9 Nov 2023 20:48:01 +0800 Subject: [PATCH] add query test case for separator '\G', ';' --- tests/parallel_test/cases.task | 1 + tests/script/tsim/query/separator.sim | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 tests/script/tsim/query/separator.sim diff --git a/tests/parallel_test/cases.task b/tests/parallel_test/cases.task index 28aa8744fd..d405d7ae12 100644 --- a/tests/parallel_test/cases.task +++ b/tests/parallel_test/cases.task @@ -1062,6 +1062,7 @@ e ,,y,script,./test.sh -f tsim/query/bug3398.sim ,,y,script,./test.sh -f tsim/query/explain_tsorder.sim ,,y,script,./test.sh -f tsim/query/apercentile.sim +,,y,script,./test.sh -f tsim/query/separator.sim ,,y,script,./test.sh -f tsim/qnode/basic1.sim ,,y,script,./test.sh -f tsim/snode/basic1.sim ,,y,script,./test.sh -f tsim/mnode/basic1.sim diff --git a/tests/script/tsim/query/separator.sim b/tests/script/tsim/query/separator.sim new file mode 100644 index 0000000000..c2f6372e15 --- /dev/null +++ b/tests/script/tsim/query/separator.sim @@ -0,0 +1,11 @@ +system sh/stop_dnodes.sh +system sh/deploy.sh -n dnode1 -i 1 +system sh/exec.sh -n dnode1 -s start +sql connect + +sql select 'a;b' as x\G +if $rows != 1 then + return -1 +endi + +system sh/exec.sh -n dnode1 -s stop -x SIGINT \ No newline at end of file