You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mysql-test/collections/default.experimental
-4Lines changed: 0 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -16,9 +16,6 @@ main.plugin # Bug#47146 Linking problem with exampl
16
16
main.signal_demo3 @solaris # Bug#47791 2010-01-20 alik Several test cases fail on Solaris with error Thread stack overrun
17
17
main.sp @solaris # Bug#47791 2010-01-20 alik Several test cases fail on Solaris with error Thread stack overrun
18
18
19
-
perfschema.tampered_perfschema_table1 @windows # Bug#50478 2010-01-20 alik perfschema.tampered_perfschema_table1 fails sporadically on Windows and Solaris
20
-
perfschema.tampered_perfschema_table1 @solaris # Bug#50478 2010-01-20 alik perfschema.tampered_perfschema_table1 fails sporadically on Windows and Solaris
21
-
22
19
rpl.rpl_heartbeat_basic # BUG#43828 2009-10-22 luis fails sporadically
23
20
rpl.rpl_heartbeat_2slaves # BUG#43828 2009-10-22 luis fails sporadically
Copy file name to clipboardExpand all lines: mysql-test/r/constraints.result
+17-1Lines changed: 17 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ create table t1 (a int check (a>0));
3
3
insert into t1 values (1);
4
4
insert into t1 values (0);
5
5
drop table t1;
6
-
create table t1 (a int ,b int, check a>b);
6
+
create table t1 (a int, b int, check (a>b));
7
7
insert into t1 values (1,0);
8
8
insert into t1 values (0,1);
9
9
drop table t1;
@@ -27,3 +27,19 @@ t1 CREATE TABLE `t1` (
27
27
UNIQUE KEY `key_2` (`a`)
28
28
) ENGINE=MyISAM DEFAULT CHARSET=latin1
29
29
drop table t1;
30
+
drop table if exists t_illegal;
31
+
create table t_illegal (a int, b int, check a>b);
32
+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'a>b)' at line 1
33
+
create table t_illegal (a int, b int, constraint abc check a>b);
34
+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'a>b)' at line 1
35
+
create table t_illegal (a int, b int, constraint abc);
36
+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
37
+
drop table if exists t_11714;
38
+
create table t_11714(a int, b int);
39
+
alter table t_11714 add constraint cons1;
40
+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
41
+
drop table t_11714;
42
+
CREATE TABLE t_illegal (col_1 INT CHECK something (whatever));
43
+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'something (whatever))' at line 1
44
+
CREATE TABLE t_illegal (col_1 INT CHECK something);
45
+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'something)' at line 1
Copy file name to clipboardExpand all lines: mysql-test/r/foreign_key.result
+42Lines changed: 42 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -13,3 +13,45 @@ foreign key (a,b) references t3 (c,d) on update set null);
13
13
create index a on t1 (a);
14
14
create unique index b on t1 (a,b);
15
15
drop table t1;
16
+
drop table if exists t_34455;
17
+
create table t_34455 (
18
+
a int not null,
19
+
foreign key (a) references t3 (a) match full match partial);
20
+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'match partial)' at line 3
21
+
create table t_34455 (
22
+
a int not null,
23
+
foreign key (a) references t3 (a) on delete set default match full);
24
+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'match full)' at line 3
25
+
create table t_34455 (
26
+
a int not null,
27
+
foreign key (a) references t3 (a) on update set default match full);
28
+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'match full)' at line 3
29
+
create table t_34455 (
30
+
a int not null,
31
+
foreign key (a) references t3 (a)
32
+
on delete set default on delete set default);
33
+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'delete set default)' at line 4
34
+
create table t_34455 (
35
+
a int not null,
36
+
foreign key (a) references t3 (a)
37
+
on update set default on update set default);
38
+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'update set default)' at line 4
39
+
create table t_34455 (a int not null);
40
+
alter table t_34455
41
+
add foreign key (a) references t3 (a) match full match partial);
42
+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'match partial)' at line 2
43
+
alter table t_34455
44
+
add foreign key (a) references t3 (a) on delete set default match full);
45
+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'match full)' at line 2
46
+
alter table t_34455
47
+
add foreign key (a) references t3 (a) on update set default match full);
48
+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'match full)' at line 2
49
+
alter table t_34455
50
+
add foreign key (a) references t3 (a)
51
+
on delete set default on delete set default);
52
+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'delete set default)' at line 3
53
+
alter table t_34455
54
+
add foreign key (a) references t3 (a)
55
+
on update set default on update set default);
56
+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'update set default)' at line 3
0 commit comments