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 | 76af571717dcf38e3fcc6919ce668f938c1fc93d (patch) | |
tree | 3c786386773c8465351e10e77dc4b52bce6578e0 /mysql-test/t/func_regexp.test | |
parent | 6146c0c75d013b15ea2c6656ee0d774498734fd2 (diff) | |
download | mariadb-git-76af571717dcf38e3fcc6919ce668f938c1fc93d.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/t/func_regexp.test')
-rw-r--r-- | mysql-test/t/func_regexp.test | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/mysql-test/t/func_regexp.test b/mysql-test/t/func_regexp.test index 23070c71fe9..5eff404bc0f 100644 --- a/mysql-test/t/func_regexp.test +++ b/mysql-test/t/func_regexp.test @@ -74,4 +74,13 @@ execute stmt1 using @a; deallocate prepare stmt1; drop table t1; -# End of 4.1 tests +--echo End of 4.1 tests + + +# +# Bug #31440: 'select 1 regex null' asserts debug server +# + +SELECT 1 REGEXP NULL; + +--echo End of 5.0 tests |