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=
'repeatable-read';
6 SET @completion= @@global.completion_type;
7 SET @@global.completion_type=
'no_chain';
11 --echo # Additional tests
for WL#5217 by QA, testplan 1.1
14 --source suite/parts/inc/partition-dml_cr_tab.inc
15 --source suite/parts/inc/partition-dml_ins_tab.inc
19 GRANT ALL PRIVILEGES ON
test.* TO test_user_1 IDENTIFIED BY
'testpw';
20 GRANT ALL PRIVILEGES ON
test.* TO test_user_2 IDENTIFIED BY
'testpw';
21 GRANT ALL PRIVILEGES ON
test.* TO test_user_3 IDENTIFIED BY
'testpw';
23 connect (session1, localhost, test_user_1,
'testpw',
test);
24 UPDATE t1 PARTITION (`p0-29`) SET b='p0-29-upd-1' WHERE a BETWEEN 0 AND 9;
26 connect (session2, localhost, test_user_2,'testpw',
test);
27 UPDATE t1 PARTITION (`p30-299`) SET b='p30-299-upd-1' WHERE a BETWEEN 30 AND 39;
30 --echo
####### expect only p0-29 is updated
32 SELECT * FROM t1 PARTITION (`p0-29`,`p30-299`);
35 --echo ####### expect only p30-299 is updated
37 SELECT * FROM t1 PARTITION (`p0-29`,`p30-299`);
41 --echo ####### expect only p0-29 is updated
43 SELECT * FROM t1 PARTITION (`p0-29`,`p30-299`);
46 --echo ####### expect only p30-299 is updated
48 SELECT * FROM t1 PARTITION (`p0-29`,`p30-299`);
50 connect (session3, localhost, test_user_3,
'testpw',test);
51 --echo ####### expect only p0-29 is updated
53 SELECT * FROM t1 PARTITION (`p0-29`,`p30-299`);
58 --echo ####### expect p0-29 and p30-299 is updated
60 SELECT * FROM t1 PARTITION (`p0-29`,`p30-299`);
63 --echo ####### expect only p30-299 is updated
65 SELECT * FROM t1 PARTITION (`p0-29`,`p30-299`);
67 --echo ####### expect p0-29 and p30-299 is updated
69 SELECT * FROM t1 PARTITION (`p0-29`,`p30-299`);
75 DROP USER test_user_1;
76 DROP USER test_user_2;
77 DROP USER test_user_3;
79 SET @@global.autocommit= @
auto;
80 SET @@global.tx_isolation= @iso;
81 SET @@global.completion_type= @completion;