summaryrefslogtreecommitdiff
path: root/storage/spider/mysql-test/spider/r/error_row_number.result
blob: ad095fe8ebd57a8c6c9daa60ab7a3d070cd8dec9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#
# MDEV-26693 ROW_NUMBER is wrong upon INSERT or UPDATE on Spider table
#
for master_1
for child2
child2_1
child2_2
child2_3
for child3
child3_1
child3_2
child3_3
connection child2_1;
create database auto_test_remote;
use auto_test_remote;
create table ta_r (id int primary key);
connection master_1;
create table spd (id int primary key) $MASTER_1_ENGINE $MASTER_1_CHARSET $MASTER_1_COMMENT_2_1;
insert into spd values (1),(2),(1);
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
get diagnostics condition 1 @n = row_number;
select @n;
@n
0
delete from spd;
insert into spd values (1),(2),(3),(13);
update spd set id = id + 10;
ERROR 23000: Duplicate entry '13' for key 'PRIMARY'
get diagnostics condition 1 @n = row_number;
select @n;
@n
1
drop table spd;
connection child2_1;
drop database auto_test_remote;
connection master_1;
for master_1
for child2
child2_1
child2_2
child2_3
for child3
child3_1
child3_2
child3_3