Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/query/ast/tests/it/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1560,6 +1560,7 @@ fn test_expr_error() {
"#,
r#"CAST(1 AS STRING) ESCAPE '$'"#,
r#"1 + 1 ESCAPE '$'"#,
r#"x'ABC'"#,
];

for case in cases {
Expand Down
13 changes: 13 additions & 0 deletions src/query/ast/tests/it/testdata/expr-error.txt
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,16 @@ error:
| while parsing expression


---------- Input ----------
x'ABC'
---------- Output ---------
error:
--> SQL:1:1
|
1 | x'ABC'
| ^^^^^^
| |
| expecting `<LiteralString>`, '<LiteralCodeString>', '<LiteralInteger>', '<LiteralFloat>', 'TRUE', 'FALSE', or more ...
| while parsing expression


11 changes: 11 additions & 0 deletions tests/sqllogictests/suites/query/functions/binary_format.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
statement ok
drop table if exists fmt_bin

statement ok
set binary_output_format = 'hex'

query TT
select typeof(X'ABCD'), X'ABCD'
----
Binary ABCD

statement error
select X'0A' + 1

statement ok
create table fmt_bin(id int, v binary)

Expand Down
Loading