Skip to content
Merged
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
13 changes: 8 additions & 5 deletions datafusion/sqllogictest/test_files/string/string_literal.slt
Original file line number Diff line number Diff line change
Expand Up @@ -862,26 +862,29 @@ true true true true
# Escapes

# \ is an implicit escape character
query BBBB
query BBBBBB
SELECT
'a' LIKE '\%',
'\a' LIKE '\%',
'\a' LIKE '\\%',
'%' LIKE '\%',
'\%' LIKE '\%'
'\%' LIKE '\%',
'\%' LIKE '\\%'
----
false false true false
false false true true false true

# \ is an implicit escape character
query BBBBBB
query BBBBBBB
SELECT
'a' LIKE '\_',
'\a' LIKE '\_',
'\a' LIKE '\\_',
'_' LIKE '\_',
'\_' LIKE '\_',
'abc' LIKE 'a_c',
'abc' LIKE 'a\_c'
----
false false true false true false
false false true true false true false

query BBBB
SELECT
Expand Down