diff options
author | jimw@mysql.com <> | 2004-12-03 00:39:55 +0100 |
---|---|---|
committer | jimw@mysql.com <> | 2004-12-03 00:39:55 +0100 |
commit | 4b8e96d5ca349209a4ab0889df6e18b66aa27097 (patch) | |
tree | 53ebea55676a1cbab3ffb260b9f465ae28508351 /mysql-test/t/insert_select.test | |
parent | eb6c38fe9c129c238fbfc2defbcd832284c0d7b8 (diff) | |
parent | 13649d90ae90257620461cdd97bbf217bd1b1755 (diff) | |
download | mariadb-git-4b8e96d5ca349209a4ab0889df6e18b66aa27097.tar.gz |
Merge
Diffstat (limited to 'mysql-test/t/insert_select.test')
-rw-r--r-- | mysql-test/t/insert_select.test | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/t/insert_select.test b/mysql-test/t/insert_select.test index db5dc8d91da..e1459310bb9 100644 --- a/mysql-test/t/insert_select.test +++ b/mysql-test/t/insert_select.test @@ -89,6 +89,19 @@ show binlog events; select * from t1; drop table t1, t2; +# Verify that a partly-completed CREATE TABLE .. SELECT does not +# get into the binlog (Bug #6682) +create table t1(a int); +insert into t1 values(1),(1); +reset master; +--error 1062 +create table t2(unique(a)) select a from t1; +# The above should produce an error, *and* not appear in the binlog +let $VERSION=`select version()`; +--replace_result $VERSION VERSION +show binlog events; +drop table t1; + # # Test of insert ... select from same table # |