summaryrefslogtreecommitdiff
path: root/mysql-test/r/rpl_insert_id.result
diff options
context:
space:
mode:
authorunknown <evgen@moonbone.local>2006-07-13 18:16:16 +0400
committerunknown <evgen@moonbone.local>2006-07-13 18:16:16 +0400
commit805c33a5e161864c5eee91f02335eb59000c77b2 (patch)
tree7f6569df935d07558c6602029f0648e288a95f84 /mysql-test/r/rpl_insert_id.result
parenta7dddd3b67e70292c0813e80ad255f1dc2f3a867 (diff)
parentf783a15aada23772e9aae11f9732dd6e9ed095de (diff)
downloadmariadb-git-805c33a5e161864c5eee91f02335eb59000c77b2.tar.gz
Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0
into moonbone.local:/work/tmp_merge-5.0-opt-mysql mysql-test/r/rpl_insert_id.result: Auto merged mysql-test/t/rpl_insert_id.test: Auto merged sql/item_strfunc.cc: Auto merged sql/item_strfunc.h: Auto merged sql/sql_class.cc: Auto merged sql/sql_class.h: Auto merged sql/sql_insert.cc: Auto merged sql/sql_select.cc: Auto merged
Diffstat (limited to 'mysql-test/r/rpl_insert_id.result')
-rw-r--r--mysql-test/r/rpl_insert_id.result13
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/r/rpl_insert_id.result b/mysql-test/r/rpl_insert_id.result
index cd66e8727c1..3aa82bf1d63 100644
--- a/mysql-test/r/rpl_insert_id.result
+++ b/mysql-test/r/rpl_insert_id.result
@@ -74,6 +74,19 @@ SET FOREIGN_KEY_CHECKS=0;
INSERT INTO t1 VALUES (1),(1);
ERROR 23000: Duplicate entry '1' for key 1
drop table t1;
+create table t1(a int auto_increment, key(a));
+create table t2(a int);
+insert into t1 (a) values (null);
+insert into t2 (a) select a from t1 where a is null;
+insert into t2 (a) select a from t1 where a is null;
+select * from t2;
+a
+1
+select * from t2;
+a
+1
+drop table t1;
+drop table t2;
drop function if exists bug15728;
drop function if exists bug15728_insert;
drop table if exists t1, t2;