diff --git a/sql/field_conv.cc b/sql/field_conv.cc index 42272dd616feb457c8bfa17483077b033a1a3ba6..a32a635ac05f9d83b598761a28b510d71f6e22be 100644 --- a/sql/field_conv.cc +++ b/sql/field_conv.cc @@ -121,6 +121,7 @@ set_field_to_null(Field *field) field->reset(); if (current_thd->count_cuted_fields) { + field->set_default(); current_thd->cuted_fields++; // Increment error counter return 0; } @@ -175,6 +176,7 @@ set_field_to_null_with_conversions(Field *field, bool no_conversions) return 0; // field is set in handler.cc if (current_thd->count_cuted_fields) { + field->set_default(); current_thd->cuted_fields++; // Increment error counter return 0; }