1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03: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:
unknown
2003-07-01 14:38:38 +03:00
parent 0fe578f52a
commit 23a9a5805c
4 changed files with 14 additions and 17 deletions

View File

@@ -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)