Skip to content

Commit 06e3f02

Browse files
committed
chore(cubestore): Upgrade DF: Make ilike test expect different, correct SQL string escaping behavior
1 parent a4ebbd5 commit 06e3f02

File tree

1 file changed

+3
-3
lines changed
  • rust/cubestore/cubestore-sql-tests/src

1 file changed

+3
-3
lines changed

rust/cubestore/cubestore-sql-tests/src/tests.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1593,11 +1593,11 @@ async fn ilike(service: Box<dyn SqlClient>) {
15931593
.exec_query(
15941594
"INSERT INTO s.strings(t, pat) \
15951595
VALUES ('aba', '%ABA'), ('ABa', '%aba%'), ('CABA', 'aba%'), ('ZABA', '%a%b%a%'), ('ZZZ', 'zzz'), ('TTT', 'TTT'),\
1596-
('some_underscore', '%some\\\\_underscore%'),\
1596+
('some_underscore', '%some\\_underscore%'),\
15971597
('test [ special 1', '%test [%'),\
15981598
('test ( special 2', '%test (%'),\
15991599
('111 test {)?*|+aaa', '%test {)?*|+aaa'),\
1600-
('test2 }]\\\\222 ', 'test2 }]\\\\\\\\%'),\
1600+
('test2 }]\\222 ', 'test2 }]\\\\%'),\
16011601
('test2 -[]{}()*+?.,^$|# 2', '%-[]{}()*+?.,^$|#%')\
16021602
",
16031603

@@ -1630,7 +1630,7 @@ async fn ilike(service: Box<dyn SqlClient>) {
16301630

16311631
let r = service
16321632
.exec_query(
1633-
"SELECT t FROM s.strings WHERE t ILIKE CONCAT('%', 'some\\\\_underscore', '%') ORDER BY t",
1633+
"SELECT t FROM s.strings WHERE t ILIKE CONCAT('%', 'some\\_underscore', '%') ORDER BY t",
16341634
)
16351635
.await
16361636
.unwrap();

0 commit comments

Comments
 (0)