mirror of
https://github.com/MariaDB/server.git
synced 2026-04-30 12:15:32 +02:00
Optimized old patches
Don't set field to DEFAULT value when set to NULL mysql-test/r/insert.result: Updated results after patch sql/field_conv.cc: Revert patch: Don't set field to DEFAULT value when set to NULL sql/item_strfunc.cc: Optimized patch for null handling with elt sql/opt_range.cc: Safety fix for range with null patch
This commit is contained in:
parent
0fe578f52a
commit
23a9a5805c
4 changed files with 14 additions and 17 deletions
|
|
@ -2409,7 +2409,11 @@ 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 */
|
||||
{
|
||||
if (current_thd->fatal_error)
|
||||
return 0; // End of memory
|
||||
return quick; // empty range
|
||||
}
|
||||
|
||||
QUICK_RANGE *range= new QUICK_RANGE();
|
||||
if (!range)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue