diff options
author | unknown <bar@bar.mysql.r18.ru> | 2003-09-24 13:57:26 +0500 |
---|---|---|
committer | unknown <bar@bar.mysql.r18.ru> | 2003-09-24 13:57:26 +0500 |
commit | e9299e6da9456307a13446ab13756ec654dc54da (patch) | |
tree | 448ed92b80853b37f5da3790377626724f67208d /mysql-test/t/func_regexp.test | |
parent | 4e09f14b18ededb18aab527abe582fca34afe79c (diff) | |
download | mariadb-git-e9299e6da9456307a13446ab13756ec654dc54da.tar.gz |
regexp worked only with the default character set.
Now it can work with any character set.
Diffstat (limited to 'mysql-test/t/func_regexp.test')
-rw-r--r-- | mysql-test/t/func_regexp.test | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/t/func_regexp.test b/mysql-test/t/func_regexp.test index 6e5d601844e..6ecb56ef9c4 100644 --- a/mysql-test/t/func_regexp.test +++ b/mysql-test/t/func_regexp.test @@ -45,3 +45,17 @@ create table t1 (xxx char(128)); insert into t1 (xxx) values('this is some text: to test - out.reg exp (22/45)'); select * from t1 where xxx REGEXP '^this is some text: to test - out\\.reg exp [[(][0-9]+[/\\][0-9]+[])][ ]*$'; drop table t1; + +# +# Check with different character sets and collations +# +select _latin1 0xFF regexp _latin1 '[[:lower:]]' COLLATE latin1_bin; +select _koi8r 0xFF regexp _koi8r '[[:lower:]]' COLLATE koi8r_bin; +select _latin1 0xFF regexp _latin1 '[[:upper:]]' COLLATE latin1_bin; +select _koi8r 0xFF regexp _koi8r '[[:upper:]]' COLLATE koi8r_bin; + +select _latin1 0xF7 regexp _latin1 '[[:alpha:]]'; +select _koi8r 0xF7 regexp _koi8r '[[:alpha:]]'; + +select _latin1'a' regexp _latin1'A' collate latin1_general_ci; +select _latin1'a' regexp _latin1'A' collate latin1_bin; |