1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Fix Bug#56143 too many foreign keys causes output of show create table to become invalid

Just remove the check whether the file is "too big".
A similar code exists in ha_innobase::update_table_comment() but that
method does not seem to be used.
This commit is contained in:
Vasil Dimov
2010-10-13 20:18:59 +03:00
parent d5055f4e8a
commit 4c14da7975
3 changed files with 589 additions and 2 deletions

View File

@@ -0,0 +1,29 @@
#
# Bug#56143 too many foreign keys causes output of show create table to become invalid
# http://bugs.mysql.com/56143
#
-- source include/have_innodb.inc
-- disable_query_log
-- disable_result_log
SET foreign_key_checks=0;
DROP TABLE IF EXISTS bug56143;
CREATE TABLE bug56143 (a INT, b INT, c INT, KEY(a), KEY(b), KEY(c)) ENGINE=INNODB;
let $i = 550;
while ($i)
{
eval ALTER TABLE `bug56143` ADD CONSTRAINT `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa$i` FOREIGN KEY (`b`) REFERENCES `bug56143`(`b`) ON UPDATE SET NULL;
dec $i;
}
-- enable_query_log
-- enable_result_log
SHOW CREATE TABLE bug56143;
-- disable_query_log
-- disable_result_log
DROP TABLE bug56143;