mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
a fix (bug #9881: ALTER TABLE gives wrong error message with sql-mode TRADITIONAL).
sql/field.cc: a fix (bug #9881: ALTER TABLE gives wrong error message with sql-mode TRADITIONAL). Don't set def if NO_DEFAULT_VALUE_FLAG is set.
This commit is contained in:
@ -8487,7 +8487,8 @@ create_field::create_field(Field *old_field,Field *orig_field)
|
||||
else
|
||||
interval=0;
|
||||
def=0;
|
||||
if (!old_field->is_real_null() && ! (flags & BLOB_FLAG) &&
|
||||
if (!(flags & NO_DEFAULT_VALUE_FLAG) &&
|
||||
!old_field->is_real_null() && ! (flags & BLOB_FLAG) &&
|
||||
old_field->ptr && orig_field)
|
||||
{
|
||||
char buff[MAX_FIELD_WIDTH],*pos;
|
||||
|
Reference in New Issue
Block a user