mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +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:
@@ -1093,3 +1093,13 @@ set @@sql_mode='traditional';
|
||||
create table t1(a varchar(65537));
|
||||
--error 1074
|
||||
create table t1(a varbinary(65537));
|
||||
|
||||
#
|
||||
# Bug #9881: problem with altering table
|
||||
#
|
||||
|
||||
set @@sql_mode='traditional';
|
||||
create table t1(a int, b date not null);
|
||||
alter table t1 modify a bigint unsigned not null;
|
||||
show create table t1;
|
||||
drop table t1;
|
||||
|
||||
Reference in New Issue
Block a user