mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge mysql.com:/home/hf/work/32067/my51-32067
into mysql.com:/home/hf/work/31305/my51-31305 mysql-test/r/partition.result: Auto merged mysql-test/t/partition.test: Auto merged
This commit is contained in:
@ -1291,4 +1291,9 @@ t1 CREATE TABLE `t1` (
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (b) (PARTITION p1 VALUES LESS THAN (10) ENGINE = MyISAM, PARTITION p2 VALUES LESS THAN (20) ENGINE = MyISAM) */
|
||||
drop table t1, t2;
|
||||
create table t1
|
||||
(s1 timestamp on update current_timestamp, s2 int)
|
||||
partition by key(s1) partitions 3;
|
||||
insert into t1 values (null,null);
|
||||
drop table t1;
|
||||
End of 5.1 tests
|
||||
|
@ -1528,4 +1528,25 @@ PARTITION BY RANGE (b) (
|
||||
show create table t1;
|
||||
drop table t1, t2;
|
||||
|
||||
#
|
||||
# Bug #32067 Partitions: crash with timestamp column
|
||||
# this bug occurs randomly on some UPDATE statement
|
||||
# with the '1032: Can't find record in 't1'' error
|
||||
|
||||
create table t1
|
||||
(s1 timestamp on update current_timestamp, s2 int)
|
||||
partition by key(s1) partitions 3;
|
||||
|
||||
insert into t1 values (null,null);
|
||||
--disable_query_log
|
||||
let $cnt= 1000;
|
||||
while ($cnt)
|
||||
{
|
||||
update t1 set s2 = 1;
|
||||
update t1 set s2 = 2;
|
||||
dec $cnt;
|
||||
}
|
||||
--enable_query_log
|
||||
|
||||
drop table t1;
|
||||
--echo End of 5.1 tests
|
||||
|
Reference in New Issue
Block a user