diff options
author | Georgi Kodinov <joro@sun.com> | 2009-12-18 14:00:30 +0200 |
---|---|---|
committer | Georgi Kodinov <joro@sun.com> | 2009-12-18 14:00:30 +0200 |
commit | a21a0b47ca46212a528c4402e4b473fe51437422 (patch) | |
tree | 20e23e95bf1da48ebff84955fc69594f16a4132a /mysql-test/r | |
parent | 172acc598007f250c10c629ace64ff23ed665740 (diff) | |
download | mariadb-git-a21a0b47ca46212a528c4402e4b473fe51437422.tar.gz |
Bug #31145: ALTER TABLE DROP COLUMN, ADD COLUMN crashes (linux) or
freezes (win) the server
The check for equality was assuming the field object is always
created. If it's not it was de-referencing a NULL pointer.
Fixed to use the data in the create object instead.
Diffstat (limited to 'mysql-test/r')
-rw-r--r-- | mysql-test/r/alter_table.result | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/r/alter_table.result b/mysql-test/r/alter_table.result index 06f4e7fbe8a..004e2031fb1 100644 --- a/mysql-test/r/alter_table.result +++ b/mysql-test/r/alter_table.result @@ -1338,4 +1338,11 @@ ALTER TABLE t1 CHANGE COLUMN f1 f1_no_real_change TIMESTAMP NULL DEFAULT NULL; affected rows: 0 info: Records: 0 Duplicates: 0 Warnings: 0 DROP TABLE t1; +# +# Bug #31145: ALTER TABLE DROP COLUMN, ADD COLUMN crashes (linux) +# or freezes (win) the server +# +CREATE TABLE t1 (a TEXT, id INT, b INT); +ALTER TABLE t1 DROP COLUMN a, ADD COLUMN c TEXT FIRST; +DROP TABLE t1; End of 5.1 tests |