diff options
author | unknown <acurtis@xiphis.org> | 2005-08-10 22:17:53 +0100 |
---|---|---|
committer | unknown <acurtis@xiphis.org> | 2005-08-10 22:17:53 +0100 |
commit | 5329be868e6dc44bd78e5b5540b37ee8cb204513 (patch) | |
tree | e56c88e5c44e91416f40652b7af3a1165c35b4ba /mysql-test/t/insert_update.test | |
parent | 42fec6b68be70f65553db40c853134bee5aa7eb6 (diff) | |
parent | fdb4d307ab8c7639ced6e08c61528bfe81823fae (diff) | |
download | mariadb-git-5329be868e6dc44bd78e5b5540b37ee8cb204513.tar.gz |
Merge xiphis.org:/usr/home/antony/work2/p2-bug10109.3
into xiphis.org:/usr/home/antony/work2/p2-bug10109.4
mysql-test/t/insert_update.test:
Auto merged
mysql-test/r/insert_update.result:
Auto merged
sql/sql_class.h:
discard bug10109 changes from 4.1
sql/sql_insert.cc:
merge bug10109 from 4.1 to 5.0
sql/sql_parse.cc:
discard bug10109 changes from 4.1
Diffstat (limited to 'mysql-test/t/insert_update.test')
-rw-r--r-- | mysql-test/t/insert_update.test | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/t/insert_update.test b/mysql-test/t/insert_update.test index 5948f92d4e0..eda768be1bc 100644 --- a/mysql-test/t/insert_update.test +++ b/mysql-test/t/insert_update.test @@ -101,4 +101,18 @@ insert into t1 select a from t1 on duplicate key update a=a+1 ; insert ignore into t1 select a from t1 on duplicate key update a=t1.a+1 ; drop table t1; +# +# Bug#10109 - INSERT .. SELECT ... ON DUPLICATE KEY UPDATE fails +# Bogus "Duplicate columns" error message +# + +CREATE TABLE t1 ( + a BIGINT(20) NOT NULL DEFAULT 0, + PRIMARY KEY (a) +) ENGINE=MyISAM; + +INSERT INTO t1 ( a ) SELECT 0 ON DUPLICATE KEY UPDATE a = a + VALUES (a) ; + +DROP TABLE t1; + # End of 4.1 tests |