diff options
author | unknown <andrey@lmy004.> | 2005-09-01 00:13:02 +0200 |
---|---|---|
committer | unknown <andrey@lmy004.> | 2005-09-01 00:13:02 +0200 |
commit | 11bd1f871aec1fc67bff1f8e2b8f365c70f3cbad (patch) | |
tree | a6f339eb485c616eb82aeef8637ec1da29198d48 /mysql-test | |
parent | 92e2b9edb1660a2f9d7dcd7543fc5140abd3ff0d (diff) | |
download | mariadb-git-11bd1f871aec1fc67bff1f8e2b8f365c70f3cbad.tar.gz |
fix for bug#12913
(Simple SQL can crash server or connection)
(not initialized member leads to server crash)
mysql-test/r/create.result:
result of test for bug #12913
mysql-test/t/create.test:
test for bug#12913
(Simple SQL can crash server or connection)
sql/sql_table.cc:
copy the interval pointer too or a bit later
dereferencing of this pointer being 0x0 will crash the server
(see bug #12913)
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/create.result | 5 | ||||
-rw-r--r-- | mysql-test/t/create.test | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/r/create.result b/mysql-test/r/create.result index 95757fbd7dc..4de428868a0 100644 --- a/mysql-test/r/create.result +++ b/mysql-test/r/create.result @@ -587,6 +587,11 @@ DESC t2; Field Type Null Key Default Extra f2 varchar(86) YES NULL 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; use mysqltest; drop database mysqltest; diff --git a/mysql-test/t/create.test b/mysql-test/t/create.test index 55321a81f5e..5c69d8f7edf 100644 --- a/mysql-test/t/create.test +++ b/mysql-test/t/create.test @@ -502,6 +502,13 @@ DESC 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 # create database mysqltest; |