Added a test

This commit is contained in:
Alexey Milovidov 2020-06-15 23:13:57 +03:00
parent 80bcaaacf2
commit ba82441989
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,4 @@
ab\ncd 1
SeLeCt 'ab
cd' /* hello */ -- world
, 1;

View File

@ -0,0 +1,6 @@
SeLeCt 'ab
cd' /* hello */ -- world
, 1;
SYSTEM FLUSH LOGS;
SELECT extract(message, 'SeL.+?;') FROM system.text_log WHERE event_date >= yesterday() AND message LIKE '%SeLeCt \'ab\n%' ORDER BY event_time DESC LIMIT 1 FORMAT TSVRaw;