diff options
author | unknown <gluh@eagle.intranet.mysql.r18.ru> | 2006-05-23 13:27:45 +0500 |
---|---|---|
committer | unknown <gluh@eagle.intranet.mysql.r18.ru> | 2006-05-23 13:27:45 +0500 |
commit | fc2e96ee7b5bf2c0370310c12ec260705dfe0318 (patch) | |
tree | 31aa349670df620266f221cd9fb26ce00b18d335 /mysql-test/t/strict.test | |
parent | 2d98d2438b94bb4e8a829d507cfddef466ad4388 (diff) | |
download | mariadb-git-fc2e96ee7b5bf2c0370310c12ec260705dfe0318.tar.gz |
Fix for bug#17626 CREATE TABLE ... SELECT failure with TRADITIONAL SQL mode
transfer NO_DEFAULT_VALUE_FLAG flag to new field
mysql-test/r/strict.result:
Fix for bug#17626 CREATE TABLE ... SELECT failure with TRADITIONAL SQL mode
test case
mysql-test/r/type_ranges.result:
Fix for bug#17626 CREATE TABLE ... SELECT failure with TRADITIONAL SQL mode
result fix
mysql-test/t/strict.test:
Fix for bug#17626 CREATE TABLE ... SELECT failure with TRADITIONAL SQL mode
test case
Diffstat (limited to 'mysql-test/t/strict.test')
-rw-r--r-- | mysql-test/t/strict.test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/t/strict.test b/mysql-test/t/strict.test index d3b36cbc2a8..5044a20ae9f 100644 --- a/mysql-test/t/strict.test +++ b/mysql-test/t/strict.test @@ -1145,3 +1145,13 @@ create table t1(a bit(2)); insert into t1 values(b'101'); select * from t1; drop table t1; + +# +# Bug#17626 CREATE TABLE ... SELECT failure with TRADITIONAL SQL mode +# +set sql_mode='traditional'; +create table t1 (date date not null); +create table t2 select date from t1; +show create table t2; +drop table t2,t1; +set @@sql_mode= @org_mode; |