diff --git a/src/query/ast/tests/it/parser.rs b/src/query/ast/tests/it/parser.rs index a6c6a8807338c..c4e2d4fb4720b 100644 --- a/src/query/ast/tests/it/parser.rs +++ b/src/query/ast/tests/it/parser.rs @@ -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 { diff --git a/src/query/ast/tests/it/testdata/expr-error.txt b/src/query/ast/tests/it/testdata/expr-error.txt index 6c826ef40fffe..34cd6e4c9762b 100644 --- a/src/query/ast/tests/it/testdata/expr-error.txt +++ b/src/query/ast/tests/it/testdata/expr-error.txt @@ -134,3 +134,16 @@ error: | while parsing expression +---------- Input ---------- +x'ABC' +---------- Output --------- +error: + --> SQL:1:1 + | +1 | x'ABC' + | ^^^^^^ + | | + | expecting ``, '', '', '', 'TRUE', 'FALSE', or more ... + | while parsing expression + + diff --git a/tests/sqllogictests/suites/query/functions/binary_format.test b/tests/sqllogictests/suites/query/functions/binary_format.test index a2b138f75ac98..64ac767d897f3 100644 --- a/tests/sqllogictests/suites/query/functions/binary_format.test +++ b/tests/sqllogictests/suites/query/functions/binary_format.test @@ -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)