summaryrefslogtreecommitdiff
path: root/sql/item.cc
diff options
context:
space:
mode:
authorkonstantin@mysql.com <>2004-09-18 01:10:09 +0400
committerkonstantin@mysql.com <>2004-09-18 01:10:09 +0400
commit4230eae8575cd495167d5be99c0fae744673a8b5 (patch)
tree4fda0b8703de3f38c95d4d7ae20ac12a077cdcb9 /sql/item.cc
parentc12c9af2249034f4fb2e9c79800e9900301934e2 (diff)
downloadmariadb-git-4230eae8575cd495167d5be99c0fae744673a8b5.tar.gz
A fix and test case for bug#5510 "inserting Null in AutoIncrement primary
key Column Fails".
Diffstat (limited to 'sql/item.cc')
-rw-r--r--sql/item.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item.cc b/sql/item.cc
index 8233d050783..14136435a50 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -891,7 +891,7 @@ int Item_param::save_in_field(Field *field, bool no_conversions)
return field->store(str_value.ptr(), str_value.length(),
str_value.charset());
case NULL_VALUE:
- return set_field_to_null(field);
+ return set_field_to_null_with_conversions(field, no_conversions);
case NO_VALUE:
default:
DBUG_ASSERT(0);