summaryrefslogtreecommitdiff
path: root/sql/field_conv.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/field_conv.cc')
-rw-r--r--sql/field_conv.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/field_conv.cc b/sql/field_conv.cc
index 42272dd616f..a32a635ac05 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;
}