Skip to content

Commit

Permalink
fix slt error message
Browse files Browse the repository at this point in the history
Signed-off-by: Runji Wang <wangrunji0408@163.com>
  • Loading branch information
wangrunji0408 committed Dec 25, 2023
1 parent 582dde7 commit 5ba42e2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion e2e_test/batch/basic/func.slt.part
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ select regexp_count('foobarbaz', 'b..', 'i');
query error invalid regular expression option: "a"
select regexp_count('foobarbaz', 'b..', 3, 'a');

query error regexp_count() does not support the "global" option
query error regexp_count\(\) does not support the "global" option
select regexp_count('foobar', 'b..', 1, 'g');

query T
Expand Down
2 changes: 1 addition & 1 deletion e2e_test/batch/basic/query.slt.part
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ select count(*) from t3;
----
1

statement error Division by zero
statement error division by zero
select v1/0 from t3;


Expand Down
7 changes: 4 additions & 3 deletions e2e_test/error_ui/extended/main.slt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
query error
selet 1;
----
db error: ERROR: Failed to prepare the statement
db error: ERROR: Failed to run the query

Caused by:
sql parser error: Expected an SQL statement, found: selet at line:1, column:6
Expand All @@ -11,8 +11,9 @@ Near "selet"
query error
select 1/0;
----
db error: ERROR: Failed to execute the statement
db error: ERROR: Failed to run the query

Caused by these errors (recent errors listed first):
1: Expr error
2: Division by zero
2: in function "divide"
3: division by zero
6 changes: 4 additions & 2 deletions e2e_test/error_ui/simple/main.slt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ db error: ERROR: Failed to run the query

Caused by these errors (recent errors listed first):
1: Expr error
2: Division by zero
2: in function "divide"
3: division by zero


query error
Expand All @@ -57,7 +58,8 @@ db error: ERROR: Failed to run the query

Caused by these errors (recent errors listed first):
1: Expr error
2: Division by zero
2: in function "divide"
3: division by zero


statement error
Expand Down

0 comments on commit 5ba42e2

Please sign in to comment.