mirror of
https://github.com/MariaDB/server.git
synced 2026-05-03 13:45:34 +02:00
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.
This commit is contained in:
parent
6146c0c75d
commit
76af571717
3 changed files with 16 additions and 1 deletions
|
|
@ -4285,6 +4285,7 @@ Item_func_regex::fix_fields(THD *thd, Item **ref)
|
|||
if (args[1]->null_value)
|
||||
{ // Will always return NULL
|
||||
maybe_null=1;
|
||||
fixed= 1;
|
||||
return FALSE;
|
||||
}
|
||||
int error;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue