summaryrefslogtreecommitdiff
path: root/mysql-test/t/insert_select.test
diff options
context:
space:
mode:
authorunknown <gkodinov@mysql.com>2006-06-19 13:31:11 +0300
committerunknown <gkodinov@mysql.com>2006-06-19 13:31:11 +0300
commita9ac0557db6b1e273f645c53701f3ab792ad2493 (patch)
tree6746f5305d6dfd2efa8c2343991af44ee051ef3a /mysql-test/t/insert_select.test
parent5d9b5f5e4c8d57b58f930f48dfd4553775bc7025 (diff)
parent6cf425b856d651cc142cbee86eca11abf4d18a10 (diff)
downloadmariadb-git-a9ac0557db6b1e273f645c53701f3ab792ad2493.tar.gz
Merge mysql.com:/home/kgeorge/mysql/4.1/B9676
into mysql.com:/home/kgeorge/mysql/5.0/B9676 mysql-test/r/insert_select.result: Auto merged mysql-test/t/insert_select.test: Auto merged sql/sql_select.cc: SCCS merged
Diffstat (limited to 'mysql-test/t/insert_select.test')
-rw-r--r--mysql-test/t/insert_select.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/t/insert_select.test b/mysql-test/t/insert_select.test
index 5dd6f338865..0b9a0e86ba9 100644
--- a/mysql-test/t/insert_select.test
+++ b/mysql-test/t/insert_select.test
@@ -224,4 +224,17 @@ insert into t1(x,y) select x,z from t2 on duplicate key update x=values(z);
insert into t1(x,y) select x,z from t2 on duplicate key update x=values(t2.x);
drop table t1,t2;
+#
+# Bug #9676: INSERT INTO x SELECT .. FROM x LIMIT 1; slows down with big
+# tables
+#
+
+#Note: not an exsaustive test : just a check of the code path.
+CREATE TABLE t1 (a int PRIMARY KEY);
+INSERT INTO t1 values (1), (2);
+
+INSERT INTO t1 SELECT a + 2 FROM t1 LIMIT 1;
+
+DROP TABLE t1;
+
# End of 4.1 tests