Files
email-tracker/external/duckdb/test/sql/peg_parser/dollar_quoted.test
2025-10-24 19:21:19 -05:00

35 lines
1.2 KiB
SQL
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# name: test/sql/peg_parser/dollar_quoted.test
# description: Test dollar quoted strings in peg parser
# group: [peg_parser]
require autocomplete
statement ok
CALL check_peg_parser($TEST_PEG_PARSER$set variable time_travel_snapshot_id = $$foo$$$TEST_PEG_PARSER$);
statement ok
CALL check_peg_parser($TEST_PEG_PARSER$select $🦆$du ck$🦆$ = $🦆$du ck$🦆$;$TEST_PEG_PARSER$);
statement ok
CALL check_peg_parser($TEST_PEG_PARSER$prepare p4 as select $name, $other_name$TEST_PEG_PARSER$);
statement ok
CALL check_peg_parser($TEST_PEG_PARSER$prepare q123 as select $param, $other_name, $param;$TEST_PEG_PARSER$);
statement ok
CALL check_peg_parser($TEST_PEG_PARSER$select $tag$ $duck$ $tag$ = $tag$ $duck$ $tag$;$TEST_PEG_PARSER$);
statement ok
CALL check_peg_parser($TEST_PEG_PARSER$select $tag$ $tag$ = $tag$ $tag$;$TEST_PEG_PARSER$);
statement ok
CALL check_peg_parser($TEST_PEG_PARSER$SELECT $marker$[hello, world]$marker$::VARCHAR[];$TEST_PEG_PARSER$);
statement ok
CALL check_peg_parser($TEST_PEG_PARSER$SELECT $$[hello, world]$$::VARCHAR[];$TEST_PEG_PARSER$);
statement ok
CALL check_peg_parser($TEST_PEG_PARSER$SELECT $${quote_at_start: "\"test\"", age: 30}$$::STRUCT(age INT);$TEST_PEG_PARSER$);