mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge ahristov@bk-internal.mysql.com:/home/bk/mysql-4.1
into lmy004.:/work/mysql-4.1-bug12913 mysql-test/r/create.result: Auto merged mysql-test/t/create.test: Auto merged sql/sql_table.cc: Auto merged
This commit is contained in:
@ -601,6 +601,11 @@ DESC t2;
|
|||||||
Field Type Null Key Default Extra
|
Field Type Null Key Default Extra
|
||||||
f2 varchar(86) YES NULL
|
f2 varchar(86) YES NULL
|
||||||
DROP TABLE t1,t2;
|
DROP TABLE t1,t2;
|
||||||
|
CREATE TABLE t12913 (f1 ENUM ('a','b')) AS SELECT 'a' AS f1;
|
||||||
|
SELECT * FROM t12913;
|
||||||
|
f1
|
||||||
|
a
|
||||||
|
DROP TABLE t12913;
|
||||||
create database mysqltest;
|
create database mysqltest;
|
||||||
use mysqltest;
|
use mysqltest;
|
||||||
drop database mysqltest;
|
drop database mysqltest;
|
||||||
|
@ -501,6 +501,13 @@ AS f2 FROM t1;
|
|||||||
DESC t2;
|
DESC t2;
|
||||||
DROP TABLE t1,t2;
|
DROP TABLE t1,t2;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug#12913 Simple SQL can crash server or connection
|
||||||
|
#
|
||||||
|
CREATE TABLE t12913 (f1 ENUM ('a','b')) AS SELECT 'a' AS f1;
|
||||||
|
SELECT * FROM t12913;
|
||||||
|
DROP TABLE t12913;
|
||||||
|
|
||||||
#
|
#
|
||||||
# Bug#11028: Crash on create table like
|
# Bug#11028: Crash on create table like
|
||||||
#
|
#
|
||||||
|
@ -649,6 +649,7 @@ int mysql_prepare_table(THD *thd, HA_CREATE_INFO *create_info,
|
|||||||
sql_field->decimals= dup_field->decimals;
|
sql_field->decimals= dup_field->decimals;
|
||||||
sql_field->flags= dup_field->flags;
|
sql_field->flags= dup_field->flags;
|
||||||
sql_field->unireg_check= dup_field->unireg_check;
|
sql_field->unireg_check= dup_field->unireg_check;
|
||||||
|
sql_field->interval= dup_field->interval;
|
||||||
it2.remove(); // Remove first (create) definition
|
it2.remove(); // Remove first (create) definition
|
||||||
select_field_pos--;
|
select_field_pos--;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user