This commit is contained in:
Vadim 2018-06-06 22:36:14 +03:00
parent 4b5e28a9d1
commit 2ca21dfde7
2 changed files with 6 additions and 6 deletions

View File

@ -9,7 +9,7 @@ DROP TABLE IF EXISTS startsWith_test;
CREATE TABLE startsWith_test(S1 String, S2 String, S3 FixedString(2)) ENGINE=Memory;
INSERT INTO startsWith_test values ('11', '22', '33'), ('a', 'a', 'bb'), ('abc', 'ab', '23');
SELECT COUNT() FROM startsWith_test WHERE startsWith(s1, s1);
SELECT COUNT() FROM startsWith_test WHERE startsWith(s1, s2);
SELECT COUNT() FROM startsWith_test WHERE startsWith(s2, s3);
SELECT COUNT() FROM startsWith_test WHERE startsWith(S1, S1);
SELECT COUNT() FROM startsWith_test WHERE startsWith(S1, S2);
SELECT COUNT() FROM startsWith_test WHERE startsWith(S2, S3);
DROP TABLE startsWith_test;

View File

@ -9,8 +9,8 @@ DROP TABLE IF EXISTS endsWith_test;
CREATE TABLE endsWith_test(S1 String, S2 String, S3 FixedString(2)) ENGINE=Memory;
INSERT INTO endsWith_test values ('11', '22', '33'), ('a', 'a', 'bb'), ('abc', 'bc', '23');
SELECT COUNT() FROM endsWith_test WHERE endsWith(s1, s1);
SELECT COUNT() FROM endsWith_test WHERE endsWith(s1, s2);
SELECT COUNT() FROM endsWith_test WHERE endsWith(s2, s3);
SELECT COUNT() FROM endsWith_test WHERE endsWith(S1, S1);
SELECT COUNT() FROM endsWith_test WHERE endsWith(S1, S2);
SELECT COUNT() FROM endsWith_test WHERE endsWith(S2, S3);
DROP TABLE endsWith_test;