diff options
author | unknown <gkodinov/kgeorge@magare.gmz> | 2007-10-11 11:29:26 +0300 |
---|---|---|
committer | unknown <gkodinov/kgeorge@magare.gmz> | 2007-10-11 11:29:26 +0300 |
commit | 6bae70ba6ca6771091683911c81c1fc8a05ce641 (patch) | |
tree | 3c786386773c8465351e10e77dc4b52bce6578e0 /mysql-test/r | |
parent | d20c3355a36de891b1f4b2b42c4884f5ca9b4219 (diff) | |
download | mariadb-git-6bae70ba6ca6771091683911c81c1fc8a05ce641.tar.gz |
Bug #31440: 'select 1 regex null' asserts debug server
The special case with NULL as a regular expression
was handled at prepare time. But in this special case
the item was not marked as fixed. This caused an assertion
at execution time.
Fixed my marking the item as fixed even when known to
return NULL at prepare time.
mysql-test/r/func_regexp.result:
Bug #31440: test case
mysql-test/t/func_regexp.test:
Bug #31440: test case
sql/item_cmpfunc.cc:
Bug #31440: mark the item as fixed even when
known to return NULL.
Diffstat (limited to 'mysql-test/r')
-rw-r--r-- | mysql-test/r/func_regexp.result | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mysql-test/r/func_regexp.result b/mysql-test/r/func_regexp.result index 584c8a9b820..2366947d2a7 100644 --- a/mysql-test/r/func_regexp.result +++ b/mysql-test/r/func_regexp.result @@ -98,3 +98,8 @@ R2 R3 deallocate prepare stmt1; drop table t1; +End of 4.1 tests +SELECT 1 REGEXP NULL; +1 REGEXP NULL +NULL +End of 5.0 tests |