mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
bug with ranges and not_null_col=can_be_null_expr fixed
mysql-test/r/range.result: new test added long lines reformatted mysql-test/t/range.test: new test added long lines reformatted
This commit is contained in:
@ -2408,9 +2408,13 @@ QUICK_SELECT *get_quick_select_for_ref(TABLE *table, TABLE_REF *ref)
|
||||
|
||||
if (!quick)
|
||||
return 0;
|
||||
if (cp_buffer_from_ref(ref))
|
||||
return quick; /* empty range */
|
||||
|
||||
QUICK_RANGE *range= new QUICK_RANGE();
|
||||
if (!range || cp_buffer_from_ref(ref))
|
||||
if (!range)
|
||||
goto err;
|
||||
|
||||
range->min_key=range->max_key=(char*) ref->key_buff;
|
||||
range->min_length=range->max_length=ref->key_length;
|
||||
range->flag= ((ref->key_length == key_info->key_length &&
|
||||
|
Reference in New Issue
Block a user