summaryrefslogtreecommitdiff
path: root/mysql-test/t
diff options
context:
space:
mode:
authorunknown <Sinisa@sinisa.nasamreza.org>2002-12-04 21:50:59 +0200
committerunknown <Sinisa@sinisa.nasamreza.org>2002-12-04 21:50:59 +0200
commit491415cd0365f544d9199e96db34f30e58bed6ba (patch)
treeb8ac2a1fce2b70165ff919d2ef097216a89a31d7 /mysql-test/t
parentada3e325457bd2796c355c59cfdc179e3feeb16b (diff)
downloadmariadb-git-491415cd0365f544d9199e96db34f30e58bed6ba.tar.gz
a test case for double free'ing of pointer in alter table ...
Diffstat (limited to 'mysql-test/t')
-rw-r--r--mysql-test/t/temp_table.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/mysql-test/t/temp_table.test b/mysql-test/t/temp_table.test
index 3cf18bae9fe..0eba893fe60 100644
--- a/mysql-test/t/temp_table.test
+++ b/mysql-test/t/temp_table.test
@@ -60,3 +60,8 @@ insert into t2 values (1,1),(2,1),(3,1),(4,2);
# do a query using ELT, a join and an ORDER BY.
select one.id, two.val, elt(two.val,'one','two') from t1 one, t2 two where two.id=one.id order by one.id;
drop table t1,t2;
+create temporary table t1 (a int not null);
+insert into t1 values (1),(1);
+-- error 1062
+alter table t1 add primary key (a);
+drop table t1;