mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge quadxeon.mysql.com:/benchmarks/ext3/TOSAVE/tsmith/bk/maint/50
into quadxeon.mysql.com:/benchmarks/ext3/TOSAVE/tsmith/bk/maint/51
This commit is contained in:
@ -415,7 +415,38 @@ DROP TABLE t1;
|
|||||||
|
|
||||||
--source include/innodb_rollback_on_timeout.inc
|
--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;
|
||||||
|
set global query_cache_type=@save_qcache_type;
|
||||||
|
set global query_cache_size=@save_qcache_size;
|
||||||
|
|
||||||
--echo End of 5.0 tests
|
--echo End of 5.0 tests
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Test of behaviour with CREATE ... SELECT
|
# Test of behaviour with CREATE ... SELECT
|
||||||
#
|
#
|
||||||
|
@ -387,6 +387,31 @@ a
|
|||||||
2
|
2
|
||||||
5
|
5
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
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;
|
||||||
|
drop table if exists `test`;
|
||||||
|
Warnings:
|
||||||
|
Note 1051 Unknown table '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');
|
||||||
|
select * from test;
|
||||||
|
test1 test2
|
||||||
|
tes 5678
|
||||||
|
INSERT INTO `test` (`test1`, `test2`) VALUES ('tes', '1234')
|
||||||
|
ON DUPLICATE KEY UPDATE `test2` = '1234';
|
||||||
|
select * from test;
|
||||||
|
test1 test2
|
||||||
|
tes 1234
|
||||||
|
flush tables;
|
||||||
|
select * from test;
|
||||||
|
test1 test2
|
||||||
|
tes 1234
|
||||||
|
set global query_cache_type=@save_qcache_type;
|
||||||
|
set global query_cache_size=@save_qcache_size;
|
||||||
End of 5.0 tests
|
End of 5.0 tests
|
||||||
CREATE TABLE t1 (a int, b int);
|
CREATE TABLE t1 (a int, b int);
|
||||||
insert into t1 values (1,1),(1,2);
|
insert into t1 values (1,1),(1,2);
|
||||||
|
Reference in New Issue
Block a user