-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
35 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,13 +68,6 @@ SELECT * FROM test_varchar_filter where md5(c1) = md5('abcdddde'); | |
abcdddde abcddddd 3 | ||
abcdddde abcdddde 4 | ||
|
||
SELECT * FROM test_varchar_filter where substring(c1, 0, 4) = 'abcd'; | ||
---- | ||
abcddddd abcddddd 1 | ||
abcddddc abcddddd 2 | ||
abcdddde abcddddd 3 | ||
abcdddde abcdddde 4 | ||
|
||
statement ok | ||
INSERT INTO test_varchar_filter VALUES ('[email protected]', '[email protected]', 6); | ||
|
||
|
@@ -94,5 +87,23 @@ SELECT * FROM test_varchar_filter where regex(c1, '(\w+([-+.]\w+)*)@(\w+([-.]\w+ | |
---- | ||
[email protected] [email protected] 6 | ||
|
||
query XIII | ||
SELECT * FROM test_varchar_filter where substring(c1, 0, 4) = 'abcd'; | ||
---- | ||
abcddddd abcddddd 1 | ||
abcddddc abcddddd 2 | ||
abcdddde abcddddd 3 | ||
abcdddde abcdddde 4 | ||
|
||
query XIIII | ||
SELECT * FROM test_varchar_filter where substring(c1, 0, 0) = ''; | ||
---- | ||
abcddddd abcddddd 1 | ||
abcddddc abcddddd 2 | ||
abcdddde abcddddd 3 | ||
abcdddde abcdddde 4 | ||
abc abcd 5 | ||
[email protected] [email protected] 6 | ||
|
||
statement ok | ||
DROP TABLE test_varchar_filter; |