summaryrefslogtreecommitdiff
path: root/mysql-test/include
diff options
context:
space:
mode:
authorunknown <msvensson@pilot.blaudden>2007-04-23 17:01:02 +0200
committerunknown <msvensson@pilot.blaudden>2007-04-23 17:01:02 +0200
commit0d5a18b53bd30af029b27e39579b52f05b8f7115 (patch)
tree8cc026fffb64b3233d53f89373b5f930e8ed9a49 /mysql-test/include
parent2c4ad7372c0737d49812f1e22a108dc841b4ba74 (diff)
parente4a8fd700ef4078cdd7ea11cd57e7d2bc9c11253 (diff)
downloadmariadb-git-0d5a18b53bd30af029b27e39579b52f05b8f7115.tar.gz
Merge pilot.blaudden:/home/msvensson/mysql/mysql-5.1
into pilot.blaudden:/home/msvensson/mysql/mysql-5.1-maint BitKeeper/etc/ignore: auto-union client/Makefile.am: Auto merged client/mysql.cc: Auto merged configure.in: Auto merged client/mysqltest.c: Auto merged libmysqld/Makefile.am: Auto merged sql/Makefile.am: Auto merged sql/ha_ndbcluster.cc: Auto merged sql/item.cc: Auto merged sql/item_cmpfunc.cc: Auto merged sql/item_func.cc: Auto merged sql/mysql_priv.h: Auto merged sql/mysqld.cc: Auto merged sql/sql_delete.cc: Auto merged sql/sql_select.cc: Auto merged sql/sql_table.cc: Auto merged
Diffstat (limited to 'mysql-test/include')
-rw-r--r--mysql-test/include/mix1.inc32
1 files changed, 32 insertions, 0 deletions
diff --git a/mysql-test/include/mix1.inc b/mysql-test/include/mix1.inc
index f0d143c4570..34e2ac1048a 100644
--- a/mysql-test/include/mix1.inc
+++ b/mysql-test/include/mix1.inc
@@ -415,7 +415,39 @@ DROP TABLE t1;
--source include/innodb_rollback_on_timeout.inc
+#
+# Bug #27210: INNODB ON DUPLICATE KEY UPDATE
+#
+
+set @save_qcache_size=@@global.query_cache_size;
+set @save_qcache_type=@@global.query_cache_type;
+set global query_cache_size=10*1024*1024;
+set global query_cache_type=1;
+connect (con1,localhost,root,,);
+connection con1;
+drop table if exists `test`;
+CREATE TABLE `test` (`test1` varchar(3) NOT NULL,
+ `test2` varchar(4) NOT NULL,PRIMARY KEY (`test1`))
+ ENGINE=InnoDB DEFAULT CHARSET=latin1;
+INSERT INTO `test` (`test1`, `test2`) VALUES ('tes', '5678');
+disconnect con1;
+connect (con2,localhost,root,,);
+connection con2;
+select * from test;
+INSERT INTO `test` (`test1`, `test2`) VALUES ('tes', '1234')
+ ON DUPLICATE KEY UPDATE `test2` = '1234';
+select * from test;
+flush tables;
+select * from test;
+disconnect con2;
+connection default;
+drop table test;
+set global query_cache_type=@save_qcache_type;
+set global query_cache_size=@save_qcache_size;
+
--echo End of 5.0 tests
+
+
#
# Test of behaviour with CREATE ... SELECT
#