Merge lp:~vkolesnikov/pbxt/pbxt-bug-483714 into lp:pbxt
- pbxt-bug-483714
- Merge into trunk
Proposed by
Vladimir Kolesnikov
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | not available | ||||
Proposed branch: | lp:~vkolesnikov/pbxt/pbxt-bug-483714 | ||||
Merge into: | lp:pbxt | ||||
Diff against target: |
238 lines (+58/-19) 11 files modified
ChangeLog (+10/-0) src/discover_xt.cc (+2/-2) src/table_xt.cc (+12/-4) test/mysql-test/r/binlog_stm_ctype_ucs.result (+2/-3) test/mysql-test/r/ctype_cp932_binlog_stm.result (+6/-6) test/mysql-test/r/ctype_recoding.result (+1/-1) test/mysql-test/r/partition.result (+1/-1) test/mysql-test/r/pbxt_bugs.result (+9/-0) test/mysql-test/r/pbxt_ref_int.result (+1/-1) test/mysql-test/t/pbxt_bugs.test (+12/-0) test/mysql-test/t/pbxt_ref_int.test (+2/-1) |
||||
To merge this branch: | bzr merge lp:~vkolesnikov/pbxt/pbxt-bug-483714 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Vladimir Kolesnikov (community) | Needs Resubmitting | ||
Paul McCullagh | Needs Fixing | ||
Review via email: mp+16186@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
- 748. By Vladimir Kolesnikov
-
update to the bugfix
Revision history for this message
Vladimir Kolesnikov (vkolesnikov) wrote : | # |
> Hi Vlad,
>
> We need to log the errors that are being ignored here.
>
> xt_log_
done
Revision history for this message
Vladimir Kolesnikov (vkolesnikov) : | # |
review:
Needs Resubmitting
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'ChangeLog' | |||
2 | --- ChangeLog 2009-12-10 12:16:56 +0000 | |||
3 | +++ ChangeLog 2009-12-16 10:37:11 +0000 | |||
4 | @@ -1,6 +1,7 @@ | |||
5 | 1 | PBXT Release Notes | 1 | PBXT Release Notes |
6 | 2 | ================== | 2 | ================== |
7 | 3 | 3 | ||
8 | 4 | <<<<<<< TREE | ||
9 | 4 | ------- 1.0.10 RC4 - Not released yet | 5 | ------- 1.0.10 RC4 - Not released yet |
10 | 5 | 6 | ||
11 | 6 | RN293: Added system variable pbxt_flush_log_at_trx_commit. The value of this variable determines whether the transaction log is written and/or flushed when a transaction is ended. A value of 0 means don't write or flush the transaction log, 1 means write and flush and 2 means write, but do not flush. No matter what the setting is choosen, the transaction log is written and flushed at least once per second. | 7 | RN293: Added system variable pbxt_flush_log_at_trx_commit. The value of this variable determines whether the transaction log is written and/or flushed when a transaction is ended. A value of 0 means don't write or flush the transaction log, 1 means write and flush and 2 means write, but do not flush. No matter what the setting is choosen, the transaction log is written and flushed at least once per second. |
12 | @@ -12,6 +13,15 @@ | |||
13 | 12 | ------- 1.0.09f RC3 - 2009-11-30 | 13 | ------- 1.0.09f RC3 - 2009-11-30 |
14 | 13 | 14 | ||
15 | 14 | RN291: Fixed bug #489088: On shutdown MySQL reports: [Warning] Plugin 'PBXT' will be forced to shutdown. | 15 | RN291: Fixed bug #489088: On shutdown MySQL reports: [Warning] Plugin 'PBXT' will be forced to shutdown. |
16 | 16 | ======= | ||
17 | 17 | ------- 1.0.09g RC3 - not yet released | ||
18 | 18 | |||
19 | 19 | RN291: Fixed bug #483714: a broken table can prevent other tables from opening | ||
20 | 20 | |||
21 | 21 | RN290: Fixed bug #489088: On shutdown MySQL reports: [Warning] Plugin 'PBXT' will be forced to shutdown | ||
22 | 22 | |||
23 | 23 | ------- 1.0.09f RC3 - 2009-11-25 | ||
24 | 24 | >>>>>>> MERGE-SOURCE | ||
25 | 15 | 25 | ||
26 | 16 | RN290: Fixed bug #345524: pbxt does not compile on 64 bit windows. Currently atomic operations are not supported on this platform. | 26 | RN290: Fixed bug #345524: pbxt does not compile on 64 bit windows. Currently atomic operations are not supported on this platform. |
27 | 17 | 27 | ||
28 | 18 | 28 | ||
29 | === modified file 'src/discover_xt.cc' | |||
30 | --- src/discover_xt.cc 2009-11-24 08:50:16 +0000 | |||
31 | +++ src/discover_xt.cc 2009-12-16 10:37:11 +0000 | |||
32 | @@ -355,10 +355,10 @@ | |||
33 | 355 | { | 355 | { |
34 | 356 | if (!(b_flags & HA_NOSAME)) | 356 | if (!(b_flags & HA_NOSAME)) |
35 | 357 | return -1; | 357 | return -1; |
37 | 358 | if ((a_flags ^ b_flags) & (HA_NULL_PART_KEY | HA_END_SPACE_KEY)) | 358 | if ((a_flags ^ b_flags) & HA_NULL_PART_KEY) |
38 | 359 | { | 359 | { |
39 | 360 | /* Sort NOT NULL keys before other keys */ | 360 | /* Sort NOT NULL keys before other keys */ |
41 | 361 | return (a_flags & (HA_NULL_PART_KEY | HA_END_SPACE_KEY)) ? 1 : -1; | 361 | return (a_flags & HA_NULL_PART_KEY) ? 1 : -1; |
42 | 362 | } | 362 | } |
43 | 363 | if (a->name == primary_key_name) | 363 | if (a->name == primary_key_name) |
44 | 364 | return -1; | 364 | return -1; |
45 | 365 | 365 | ||
46 | === modified file 'src/table_xt.cc' | |||
47 | --- src/table_xt.cc 2009-11-25 15:45:25 +0000 | |||
48 | +++ src/table_xt.cc 2009-12-16 10:37:11 +0000 | |||
49 | @@ -505,7 +505,12 @@ | |||
50 | 505 | xt_strcpy(PATH_MAX, pbuf, te_ptr->te_tab_path->tp_path); | 505 | xt_strcpy(PATH_MAX, pbuf, te_ptr->te_tab_path->tp_path); |
51 | 506 | xt_add_dir_char(PATH_MAX, pbuf); | 506 | xt_add_dir_char(PATH_MAX, pbuf); |
52 | 507 | xt_strcat(PATH_MAX, pbuf, te_ptr->te_tab_name); | 507 | xt_strcat(PATH_MAX, pbuf, te_ptr->te_tab_name); |
54 | 508 | xt_heap_release(self, xt_use_table_no_lock(self, db, (XTPathStrPtr)pbuf, FALSE, FALSE, NULL, NULL)); | 508 | try_(a) { |
55 | 509 | xt_heap_release(self, xt_use_table_no_lock(self, db, (XTPathStrPtr)pbuf, FALSE, FALSE, NULL, NULL)); | ||
56 | 510 | } catch_(a) { | ||
57 | 511 | /* ignore errors */ | ||
58 | 512 | xt_log_and_clear_warning(self); | ||
59 | 513 | } cont_(a); | ||
60 | 509 | } | 514 | } |
61 | 510 | 515 | ||
62 | 511 | popr_(); // Discard xt_tab_exit_db(db) | 516 | popr_(); // Discard xt_tab_exit_db(db) |
63 | @@ -1148,9 +1153,12 @@ | |||
64 | 1148 | * will work if we have cyclic foreign key references. | 1153 | * will work if we have cyclic foreign key references. |
65 | 1149 | */ | 1154 | */ |
66 | 1150 | if (tab->tab_dic.dic_table) { | 1155 | if (tab->tab_dic.dic_table) { |
70 | 1151 | pushr_(xt_del_from_db_tables_ht, tab); | 1156 | try_(a) { |
71 | 1152 | tab->tab_dic.dic_table->attachReferences(self, db); | 1157 | tab->tab_dic.dic_table->attachReferences(self, db); |
72 | 1153 | popr_(); | 1158 | } catch_(a) { |
73 | 1159 | /* ignore problems of referenced tables */ | ||
74 | 1160 | xt_log_and_clear_warning(self); | ||
75 | 1161 | } cont_(a); | ||
76 | 1154 | } | 1162 | } |
77 | 1155 | 1163 | ||
78 | 1156 | *r_tab = tab; | 1164 | *r_tab = tab; |
79 | 1157 | 1165 | ||
80 | === modified file 'test/mysql-test/r/binlog_stm_ctype_ucs.result' | |||
81 | --- test/mysql-test/r/binlog_stm_ctype_ucs.result 2009-11-10 18:20:34 +0000 | |||
82 | +++ test/mysql-test/r/binlog_stm_ctype_ucs.result 2009-12-16 10:37:11 +0000 | |||
83 | @@ -5,16 +5,15 @@ | |||
84 | 5 | insert into t2 values (@v); | 5 | insert into t2 values (@v); |
85 | 6 | show binlog events from 106; | 6 | show binlog events from 106; |
86 | 7 | Log_name Pos Event_type Server_id End_log_pos Info | 7 | Log_name Pos Event_type Server_id End_log_pos Info |
88 | 8 | master-bin.000001 106 Query 1 174 use `test`; BEGIN | 8 | master-bin.000001 106 Query 1 174 BEGIN |
89 | 9 | master-bin.000001 174 Table_map 1 217 table_id: # (test.t2) | 9 | master-bin.000001 174 Table_map 1 217 table_id: # (test.t2) |
90 | 10 | master-bin.000001 217 Write_rows 1 307 table_id: # flags: STMT_END_F | 10 | master-bin.000001 217 Write_rows 1 307 table_id: # flags: STMT_END_F |
92 | 11 | master-bin.000001 307 Query 1 376 use `test`; COMMIT | 11 | master-bin.000001 307 Query 1 376 COMMIT |
93 | 12 | flush logs; | 12 | flush logs; |
94 | 13 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; | 13 | /*!40019 SET @@session.max_insert_delayed_threads=0*/; |
95 | 14 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; | 14 | /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; |
96 | 15 | DELIMITER /*!*/; | 15 | DELIMITER /*!*/; |
97 | 16 | ROLLBACK/*!*/; | 16 | ROLLBACK/*!*/; |
98 | 17 | use test/*!*/; | ||
99 | 18 | SET TIMESTAMP=10000/*!*/; | 17 | SET TIMESTAMP=10000/*!*/; |
100 | 19 | SET @@session.pseudo_thread_id=999999999/*!*/; | 18 | SET @@session.pseudo_thread_id=999999999/*!*/; |
101 | 20 | SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1, @@session.autocommit=1/*!*/; | 19 | SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1, @@session.autocommit=1/*!*/; |
102 | 21 | 20 | ||
103 | === modified file 'test/mysql-test/r/ctype_cp932_binlog_stm.result' | |||
104 | --- test/mysql-test/r/ctype_cp932_binlog_stm.result 2008-11-05 15:56:49 +0000 | |||
105 | +++ test/mysql-test/r/ctype_cp932_binlog_stm.result 2009-12-16 10:37:11 +0000 | |||
106 | @@ -9,10 +9,10 @@ | |||
107 | 9 | SHOW BINLOG EVENTS FROM 106; | 9 | SHOW BINLOG EVENTS FROM 106; |
108 | 10 | Log_name Pos Event_type Server_id End_log_pos Info | 10 | Log_name Pos Event_type Server_id End_log_pos Info |
109 | 11 | master-bin.000001 # Query 1 # use `test`; CREATE TABLE t1(f1 blob) | 11 | master-bin.000001 # Query 1 # use `test`; CREATE TABLE t1(f1 blob) |
111 | 12 | master-bin.000001 # Query 1 # use `test`; BEGIN | 12 | master-bin.000001 # Query 1 # BEGIN |
112 | 13 | master-bin.000001 # Table_map 1 # table_id: # (test.t1) | 13 | master-bin.000001 # Table_map 1 # table_id: # (test.t1) |
113 | 14 | master-bin.000001 # Write_rows 1 # table_id: # flags: STMT_END_F | 14 | master-bin.000001 # Write_rows 1 # table_id: # flags: STMT_END_F |
115 | 15 | master-bin.000001 # Query 1 # use `test`; COMMIT | 15 | master-bin.000001 # Query 1 # COMMIT |
116 | 16 | SELECT HEX(f1) FROM t1; | 16 | SELECT HEX(f1) FROM t1; |
117 | 17 | HEX(f1) | 17 | HEX(f1) |
118 | 18 | 8300 | 18 | 8300 |
119 | @@ -35,10 +35,10 @@ | |||
120 | 35 | SHOW BINLOG EVENTS FROM 106| | 35 | SHOW BINLOG EVENTS FROM 106| |
121 | 36 | Log_name Pos Event_type Server_id End_log_pos Info | 36 | Log_name Pos Event_type Server_id End_log_pos Info |
122 | 37 | master-bin.000001 106 Query 1 196 use `test`; CREATE TABLE t1(f1 blob) | 37 | master-bin.000001 106 Query 1 196 use `test`; CREATE TABLE t1(f1 blob) |
124 | 38 | master-bin.000001 196 Query 1 267 use `test`; BEGIN | 38 | master-bin.000001 196 Query 1 267 BEGIN |
125 | 39 | master-bin.000001 267 Table_map 1 309 table_id: 16 (test.t1) | 39 | master-bin.000001 267 Table_map 1 309 table_id: 16 (test.t1) |
126 | 40 | master-bin.000001 309 Write_rows 1 343 table_id: 16 flags: STMT_END_F | 40 | master-bin.000001 309 Write_rows 1 343 table_id: 16 flags: STMT_END_F |
128 | 41 | master-bin.000001 343 Query 1 415 use `test`; COMMIT | 41 | master-bin.000001 343 Query 1 415 COMMIT |
129 | 42 | master-bin.000001 415 Query 1 494 use `test`; DROP table t1 | 42 | master-bin.000001 415 Query 1 494 use `test`; DROP table t1 |
130 | 43 | master-bin.000001 494 Query 1 660 use `test`; CREATE TABLE t4 (s1 CHAR(50) CHARACTER SET latin1, | 43 | master-bin.000001 494 Query 1 660 use `test`; CREATE TABLE t4 (s1 CHAR(50) CHARACTER SET latin1, |
131 | 44 | s2 CHAR(50) CHARACTER SET cp932, | 44 | s2 CHAR(50) CHARACTER SET cp932, |
132 | @@ -49,9 +49,9 @@ | |||
133 | 49 | BEGIN | 49 | BEGIN |
134 | 50 | INSERT INTO t4 VALUES (ins1, ins2, ind); | 50 | INSERT INTO t4 VALUES (ins1, ins2, ind); |
135 | 51 | END | 51 | END |
137 | 52 | master-bin.000001 909 Query 1 977 use `test`; BEGIN | 52 | master-bin.000001 909 Query 1 977 BEGIN |
138 | 53 | master-bin.000001 977 Table_map 1 1026 table_id: 18 (test.t4) | 53 | master-bin.000001 977 Table_map 1 1026 table_id: 18 (test.t4) |
139 | 54 | master-bin.000001 1026 Write_rows 1 1080 table_id: 18 flags: STMT_END_F | 54 | master-bin.000001 1026 Write_rows 1 1080 table_id: 18 flags: STMT_END_F |
141 | 55 | master-bin.000001 1080 Query 1 1149 use `test`; COMMIT | 55 | master-bin.000001 1080 Query 1 1149 COMMIT |
142 | 56 | master-bin.000001 1149 Query 1 1238 use `test`; DROP PROCEDURE bug18293 | 56 | master-bin.000001 1149 Query 1 1238 use `test`; DROP PROCEDURE bug18293 |
143 | 57 | master-bin.000001 1238 Query 1 1317 use `test`; DROP TABLE t4 | 57 | master-bin.000001 1238 Query 1 1317 use `test`; DROP TABLE t4 |
144 | 58 | 58 | ||
145 | === modified file 'test/mysql-test/r/ctype_recoding.result' | |||
146 | --- test/mysql-test/r/ctype_recoding.result 2008-03-11 16:31:13 +0000 | |||
147 | +++ test/mysql-test/r/ctype_recoding.result 2009-12-16 10:37:11 +0000 | |||
148 | @@ -165,7 +165,7 @@ | |||
149 | 165 | ERROR HY000: Invalid utf8 character string: 'ÐÌÏÈÏ' | 165 | ERROR HY000: Invalid utf8 character string: 'ÐÌÏÈÏ' |
150 | 166 | SET NAMES utf8; | 166 | SET NAMES utf8; |
151 | 167 | CREATE TABLE `goodÐÌÏÈÏ` (a int); | 167 | CREATE TABLE `goodÐÌÏÈÏ` (a int); |
153 | 168 | ERROR HY000: Invalid utf8 character string: 'ÐÌÏÈÏ` (a int)' | 168 | ERROR HY000: Invalid utf8 character string: 'ÐÌÏÈÏ' |
154 | 169 | set names latin1; | 169 | set names latin1; |
155 | 170 | create table t1 (a char(10) character set koi8r, b text character set koi8r); | 170 | create table t1 (a char(10) character set koi8r, b text character set koi8r); |
156 | 171 | insert into t1 values ('test','test'); | 171 | insert into t1 values ('test','test'); |
157 | 172 | 172 | ||
158 | === modified file 'test/mysql-test/r/partition.result' | |||
159 | --- test/mysql-test/r/partition.result 2009-06-02 19:05:33 +0000 | |||
160 | +++ test/mysql-test/r/partition.result 2009-12-16 10:37:11 +0000 | |||
161 | @@ -751,7 +751,7 @@ | |||
162 | 751 | subpartition by hash(a) | 751 | subpartition by hash(a) |
163 | 752 | (partition p0 values less than (0), | 752 | (partition p0 values less than (0), |
164 | 753 | partition p1 values less than (1) (subpartition sp0)); | 753 | partition p1 values less than (1) (subpartition sp0)); |
166 | 754 | ERROR 42000: Wrong number of subpartitions defined, mismatch with previous setting near '))' at line 5 | 754 | ERROR 42000: Wrong number of subpartitions defined, mismatch with previous setting near 'subpartition sp0))' at line 5 |
167 | 755 | create table t1 (a int) | 755 | create table t1 (a int) |
168 | 756 | partition by hash (a) | 756 | partition by hash (a) |
169 | 757 | (partition p0 (subpartition sp0)); | 757 | (partition p0 (subpartition sp0)); |
170 | 758 | 758 | ||
171 | === modified file 'test/mysql-test/r/pbxt_bugs.result' | |||
172 | --- test/mysql-test/r/pbxt_bugs.result 2009-07-22 08:31:39 +0000 | |||
173 | +++ test/mysql-test/r/pbxt_bugs.result 2009-12-16 10:37:11 +0000 | |||
174 | @@ -1316,3 +1316,12 @@ | |||
175 | 1316 | insert into t2 values (1,3); | 1316 | insert into t2 values (1,3); |
176 | 1317 | ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Constraint: `fk1`) | 1317 | ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Constraint: `fk1`) |
177 | 1318 | drop table t2, t1; | 1318 | drop table t2, t1; |
178 | 1319 | create table t2 (id int primary key, constraint foreign key fk1 (id) references t1(id)) engine=pbxt; | ||
179 | 1320 | select * from t2; | ||
180 | 1321 | id | ||
181 | 1322 | insert into t2 values (1); | ||
182 | 1323 | ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Referenced table `t1` not found) | ||
183 | 1324 | create table t1 (id int primary key) engine=pbxt; | ||
184 | 1325 | insert into t1 values (1); | ||
185 | 1326 | insert into t2 values (1); | ||
186 | 1327 | drop table t2, t1; | ||
187 | 1319 | 1328 | ||
188 | === modified file 'test/mysql-test/r/pbxt_ref_int.result' | |||
189 | --- test/mysql-test/r/pbxt_ref_int.result 2009-06-30 11:05:34 +0000 | |||
190 | +++ test/mysql-test/r/pbxt_ref_int.result 2009-12-16 10:37:11 +0000 | |||
191 | @@ -365,7 +365,7 @@ | |||
192 | 365 | drop table if exists t2, t1; | 365 | drop table if exists t2, t1; |
193 | 366 | set foreign_key_checks = 1; | 366 | set foreign_key_checks = 1; |
194 | 367 | CREATE TABLE t2 (s1 INT DEFAULT NULL, FOREIGN KEY (s1) REFERENCES t1 (s1)); | 367 | CREATE TABLE t2 (s1 INT DEFAULT NULL, FOREIGN KEY (s1) REFERENCES t1 (s1)); |
196 | 368 | ERROR HY000: Can't create table 'test.t2' (errno: 151) | 368 | drop table if exists t2; |
197 | 369 | set foreign_key_checks = 0; | 369 | set foreign_key_checks = 0; |
198 | 370 | CREATE TABLE t2 (s1 INT DEFAULT NULL, FOREIGN KEY (s1) REFERENCES t1 (s1)); | 370 | CREATE TABLE t2 (s1 INT DEFAULT NULL, FOREIGN KEY (s1) REFERENCES t1 (s1)); |
199 | 371 | set foreign_key_checks = 1; | 371 | set foreign_key_checks = 1; |
200 | 372 | 372 | ||
201 | === modified file 'test/mysql-test/t/pbxt_bugs.test' | |||
202 | --- test/mysql-test/t/pbxt_bugs.test 2009-07-22 08:31:39 +0000 | |||
203 | +++ test/mysql-test/t/pbxt_bugs.test 2009-12-16 10:37:11 +0000 | |||
204 | @@ -1023,6 +1023,18 @@ | |||
205 | 1023 | 1023 | ||
206 | 1024 | drop table t2, t1; | 1024 | drop table t2, t1; |
207 | 1025 | 1025 | ||
208 | 1026 | # bug 483714: a broken table can prevent other tables from opening | ||
209 | 1027 | |||
210 | 1028 | create table t2 (id int primary key, constraint foreign key fk1 (id) references t1(id)) engine=pbxt; | ||
211 | 1029 | select * from t2; | ||
212 | 1030 | --error 1452 | ||
213 | 1031 | insert into t2 values (1); | ||
214 | 1032 | create table t1 (id int primary key) engine=pbxt; | ||
215 | 1033 | insert into t1 values (1); | ||
216 | 1034 | insert into t2 values (1); | ||
217 | 1035 | |||
218 | 1036 | drop table t2, t1; | ||
219 | 1037 | |||
220 | 1026 | --disable_query_log | 1038 | --disable_query_log |
221 | 1027 | 1039 | ||
222 | 1028 | DROP TABLE t5; | 1040 | DROP TABLE t5; |
223 | 1029 | 1041 | ||
224 | === modified file 'test/mysql-test/t/pbxt_ref_int.test' | |||
225 | --- test/mysql-test/t/pbxt_ref_int.test 2009-04-02 20:28:52 +0000 | |||
226 | +++ test/mysql-test/t/pbxt_ref_int.test 2009-12-16 10:37:11 +0000 | |||
227 | @@ -325,9 +325,10 @@ | |||
228 | 325 | drop table if exists t2, t1; | 325 | drop table if exists t2, t1; |
229 | 326 | --enable_warnings | 326 | --enable_warnings |
230 | 327 | 327 | ||
231 | 328 | # PBXT doesn't depend on foreign_key_checks setting | ||
232 | 328 | set foreign_key_checks = 1; | 329 | set foreign_key_checks = 1; |
233 | 329 | --error 1005 | ||
234 | 330 | CREATE TABLE t2 (s1 INT DEFAULT NULL, FOREIGN KEY (s1) REFERENCES t1 (s1)); | 330 | CREATE TABLE t2 (s1 INT DEFAULT NULL, FOREIGN KEY (s1) REFERENCES t1 (s1)); |
235 | 331 | drop table if exists t2; | ||
236 | 331 | 332 | ||
237 | 332 | set foreign_key_checks = 0; | 333 | set foreign_key_checks = 0; |
238 | 333 | CREATE TABLE t2 (s1 INT DEFAULT NULL, FOREIGN KEY (s1) REFERENCES t1 (s1)); | 334 | CREATE TABLE t2 (s1 INT DEFAULT NULL, FOREIGN KEY (s1) REFERENCES t1 (s1)); |
Hi Vlad,
We need to log the errors that are being ignored here.
xt_log_ and_clear_ warning( ) logs the errors as a warning.