1 --source include/have_partition.inc
2 SET @
auto= @@global.autocommit;
3 SET @@global.autocommit= off;
4 SET @iso= @@global.tx_isolation;
5 SET @@global.tx_isolation=
'read-uncommitted';
6 SET @completion= @@global.completion_type;
7 SET @@global.completion_type=
'no_chain';
8 SET @lock_timeout= @@global.lock_wait_timeout;
9 SET @@global.lock_wait_timeout= 1;
10 SELECT @@global.lock_wait_timeout;
11 SET @innodb_lock_timeout= @@global.innodb_lock_wait_timeout;
12 SET @@global.innodb_lock_wait_timeout= 1;
13 SELECT @@global.innodb_lock_wait_timeout;
17 --echo # Additional tests
for WL#5217 by QA, testplan 1.1
20 --source suite/parts/inc/partition-dml_cr_tab.inc
21 --source suite/parts/inc/partition-dml_ins_tab.inc
25 GRANT ALL PRIVILEGES ON
test.* TO test_user_1 IDENTIFIED BY
'testpw';
26 GRANT ALL PRIVILEGES ON
test.* TO test_user_2 IDENTIFIED BY
'testpw';
28 connect (session1, localhost, test_user_1,
'testpw',
test);
29 UPDATE t1 PARTITION (`p0-29`) SET b='p0-29-upd-1' WHERE a BETWEEN 0 AND 9;
31 SELECT * FROM t1 PARTITION (`p0-29`,`p30-299`);
33 connect (session2, localhost, test_user_1,'testpw',
test);
34 --echo
####### expect not to see the updated values
36 SELECT * FROM t1 PARTITION (`p0-29`,`p30-299`);
42 --echo ####### expect
to see the updated values.
44 SELECT * FROM t1 PARTITION (`p0-29`,`p30-299`);
50 DROP USER test_user_1;
51 DROP USER test_user_2;
53 SET @@global.autocommit= @
auto;
54 SET @@global.tx_isolation= @iso;
55 SET @@global.completion_type= @completion;
56 SET @@global.lock_wait_timeout= @lock_timeout;
57 SET @@global.innodb_lock_wait_timeout= @innodb_lock_timeout;