summaryrefslogtreecommitdiff
path: root/mysql-test/suite/innodb/r/innodb_bug56947.result
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@oracle.com>2010-10-11 11:59:43 +0300
committerMarko Mäkelä <marko.makela@oracle.com>2010-10-11 11:59:43 +0300
commit734a7327686c16a8f8b4063aef7d0e8bdc638e89 (patch)
tree462cc04d9c23d49d4d989a7ec4d51c86cee8a3dd /mysql-test/suite/innodb/r/innodb_bug56947.result
parent2cc30ff2f169a823a81a0f1565c3b25b7888d980 (diff)
downloadmariadb-git-734a7327686c16a8f8b4063aef7d0e8bdc638e89.tar.gz
Bug #56947 InnoDB leaks memory when failing to create a table
row_create_table_for_mysql(): When the table creation fails, free the dict_table_t object.
Diffstat (limited to 'mysql-test/suite/innodb/r/innodb_bug56947.result')
-rw-r--r--mysql-test/suite/innodb/r/innodb_bug56947.result8
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/suite/innodb/r/innodb_bug56947.result b/mysql-test/suite/innodb/r/innodb_bug56947.result
new file mode 100644
index 00000000000..b279069d834
--- /dev/null
+++ b/mysql-test/suite/innodb/r/innodb_bug56947.result
@@ -0,0 +1,8 @@
+SET @old_innodb_file_per_table=@@innodb_file_per_table;
+SET GLOBAL innodb_file_per_table=0;
+create table bug56947(a int not null) engine = innodb;
+CREATE TABLE `bug56947#1`(a int) ENGINE=InnoDB;
+alter table bug56947 add unique index (a);
+ERROR HY000: Table 'test.bug56947#1' already exists
+drop table `bug56947#1`;
+drop table bug56947;