Debian Codegraph @

mysql-test/suite/binlog/r/binlog_enforce_gtid_consistency_trx_nontrx_consistent.result

raw
1 include/begin_replace_gtid_combination.inc [gtid_mode=off/on -> binlog_direct_non_transactional_updates=0/1]
2 include/rpl_init.inc [topology=none]
3 SET @old_sql_notes= @@GLOBAL.SQL_NOTES;
4 SET GLOBAL SQL_NOTES= 0;
5 SET SESSION SQL_NOTES= 0;
6 CALL mtr.add_suppression('Statement violates GTID consistency:');
7 CALL mtr.add_suppression('Unsafe statement written to the binary log');
8 SET GLOBAL ENFORCE_GTID_CONSISTENCY = 0;
9 SET GLOBAL GTID_MODE = OFF_PERMISSIVE;
10 SET GLOBAL GTID_MODE = ON_PERMISSIVE;
11 SET GLOBAL GTID_MODE = 2;
12 ######## ENFORCE_GTID_CONSISTENCY=OFF GTID_MODE=ON_PERMISSIVE GTID_NEXT=AUTOMATIC ########
13 CREATE TABLE myisam1 (a INT) ENGINE = MyISAM;
14 CREATE TABLE myisam2 (a INT) ENGINE = MyISAM;
15 CREATE TABLE innodb (a INT) ENGINE = InnoDB;
16 ---- MyISAM followed by MyISAM, in one 'trx' ----
17 # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=AUTOMATIC
18 SET GTID_NEXT = 'AUTOMATIC';
19 BEGIN; INSERT INTO myisam1 VALUES (1);
20 [START] INSERT INTO myisam2 VALUES (1);
21 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
22 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
23 [END] INSERT INTO myisam2 VALUES (1);
24 include/assert.inc [No warning or error should be generated.]
25 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
26 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
27 ROLLBACK;
28 Warnings:
29 Warning 1196 Some non-transactional changed tables couldn't be rolled back
30 SET GTID_NEXT = 'AUTOMATIC';
31 include/assert.inc [Both counters should be 0]
32 ---- MyISAM and MyISAM in one statement ----
33 CREATE TRIGGER trig BEFORE INSERT ON myisam1 FOR EACH ROW INSERT INTO myisam2 VALUES (1);
34 # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=AUTOMATIC
35 SET GTID_NEXT = 'AUTOMATIC';
36 [START] INSERT INTO myisam2 VALUES (1);
37 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
38 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
39 [END] INSERT INTO myisam2 VALUES (1);
40 include/assert.inc [No warning or error should be generated.]
41 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
42 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
43 ROLLBACK;
44 SET GTID_NEXT = 'AUTOMATIC';
45 include/assert.inc [Both counters should be 0]
46 DROP TRIGGER trig;
47 ---- MyISAM followed by InnoDB, in one 'trx' ----
48 # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=AUTOMATIC
49 SET GTID_NEXT = 'AUTOMATIC';
50 BEGIN; INSERT INTO myisam1 VALUES (1);
51 [START] INSERT INTO innodb VALUES (1);
52 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
53 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
54 [END] INSERT INTO innodb VALUES (1);
55 include/assert.inc [No warning or error should be generated.]
56 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
57 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
58 ROLLBACK;
59 Warnings:
60 Warning 1196 Some non-transactional changed tables couldn't be rolled back
61 SET GTID_NEXT = 'AUTOMATIC';
62 include/assert.inc [Both counters should be 0]
63 SET SESSION BINLOG_FORMAT = MIXED;
64 Warnings:
65 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
66 ---- InnoDB followed by temp MyISAM in one trx, binlog_format=mix ----
67 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
68 # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=AUTOMATIC
69 SET GTID_NEXT = 'AUTOMATIC';
70 BEGIN; INSERT INTO innodb VALUES (1);
71 [START] INSERT INTO tmp_myisam1 VALUES (1);
72 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
73 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
74 [END] INSERT INTO tmp_myisam1 VALUES (1);
75 include/assert.inc [No warning or error should be generated.]
76 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
77 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
78 ROLLBACK;
79 Warnings:
80 Warning 1196 Some non-transactional changed tables couldn't be rolled back
81 SET GTID_NEXT = 'AUTOMATIC';
82 include/assert.inc [Both counters should be 0]
83 DROP TEMPORARY TABLE tmp_myisam1;
84 ---- InnoDB and temp MyISAM in one autocommit statement, binlog_format=mix ----
85 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
86 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
87 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
88 # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=AUTOMATIC
89 SET GTID_NEXT = 'AUTOMATIC';
90 [START] INSERT INTO innodb VALUES (1);
91 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
92 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
93 [END] INSERT INTO innodb VALUES (1);
94 include/assert.inc [No warning or error should be generated.]
95 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
96 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
97 ROLLBACK;
98 SET GTID_NEXT = 'AUTOMATIC';
99 include/assert.inc [Both counters should be 0]
100 DROP TRIGGER trig;
101 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
102 SET BINLOG_FORMAT = 'ROW';
103 Warnings:
104 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
105 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
106 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
107 ---- InnoDB followed by temp MyISAM in one trx, binlog_format='row' ----
108 # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=AUTOMATIC
109 SET GTID_NEXT = 'AUTOMATIC';
110 BEGIN; INSERT INTO innodb VALUES (1);
111 [START] INSERT INTO tmp_myisam1 VALUES (1);
112 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
113 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
114 [END] INSERT INTO tmp_myisam1 VALUES (1);
115 include/assert.inc [No warning or error should be generated.]
116 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
117 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
118 ROLLBACK;
119 Warnings:
120 Warning 1196 Some non-transactional changed tables couldn't be rolled back
121 SET GTID_NEXT = 'AUTOMATIC';
122 include/assert.inc [Both counters should be 0]
123 ---- InnoDB and temp MyISAM in one statement, binlog_format='row' ----
124 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
125 # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=AUTOMATIC
126 SET GTID_NEXT = 'AUTOMATIC';
127 [START] INSERT INTO innodb VALUES (1);
128 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
129 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
130 [END] INSERT INTO innodb VALUES (1);
131 include/assert.inc [No warning or error should be generated.]
132 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
133 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
134 ROLLBACK;
135 SET GTID_NEXT = 'AUTOMATIC';
136 include/assert.inc [Both counters should be 0]
137 DROP TRIGGER trig;
138 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
139 SET BINLOG_FORMAT = #;
140 Warnings:
141 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
142 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
143 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
144 SET SQL_LOG_BIN = 0;
145 ---- InnoDB and MyISAM in one statement, SQL_LOG_BIN=0 ----
146 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
147 # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=AUTOMATIC
148 SET GTID_NEXT = 'AUTOMATIC';
149 [START] INSERT INTO innodb VALUES (1);
150 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
151 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
152 [END] INSERT INTO innodb VALUES (1);
153 include/assert.inc [No warning or error should be generated.]
154 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
155 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
156 ROLLBACK;
157 SET GTID_NEXT = 'AUTOMATIC';
158 include/assert.inc [Both counters should be 0]
159 DROP TRIGGER trig;
160 ---- InnoDB followed by MyISAM, in one trx, SQL_LOG_BIN=0 ----
161 # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=AUTOMATIC
162 SET GTID_NEXT = 'AUTOMATIC';
163 BEGIN; INSERT INTO innodb VALUES (1);
164 [START] INSERT INTO myisam1 VALUES (1);
165 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
166 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
167 [END] INSERT INTO myisam1 VALUES (1);
168 include/assert.inc [No warning or error should be generated.]
169 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
170 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
171 ROLLBACK;
172 Warnings:
173 Warning 1196 Some non-transactional changed tables couldn't be rolled back
174 SET GTID_NEXT = 'AUTOMATIC';
175 include/assert.inc [Both counters should be 0]
176 ---- InnoDB and MyISAM in one statement inside trx, SQL_LOG_BIN=0 ----
177 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
178 # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=AUTOMATIC
179 SET GTID_NEXT = 'AUTOMATIC';
180 BEGIN;
181 [START] INSERT INTO innodb VALUES (1);
182 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
183 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
184 [END] INSERT INTO innodb VALUES (1);
185 include/assert.inc [No warning or error should be generated.]
186 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
187 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
188 ROLLBACK;
189 Warnings:
190 Warning 1196 Some non-transactional changed tables couldn't be rolled back
191 SET GTID_NEXT = 'AUTOMATIC';
192 include/assert.inc [Both counters should be 0]
193 DROP TRIGGER trig;
194 SET SQL_LOG_BIN = 1;
195 DROP TABLE myisam1, myisam2, tmp_myisam1, tmp_myisam2, innodb;
196 ######## ENFORCE_GTID_CONSISTENCY=OFF GTID_MODE=ON_PERMISSIVE GTID_NEXT=ANONYMOUS ########
197 CREATE TABLE myisam1 (a INT) ENGINE = MyISAM;
198 CREATE TABLE myisam2 (a INT) ENGINE = MyISAM;
199 CREATE TABLE innodb (a INT) ENGINE = InnoDB;
200 ---- MyISAM followed by MyISAM, in one 'trx' ----
201 # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=ANONYMOUS
202 SET GTID_NEXT = 'ANONYMOUS';
203 BEGIN; INSERT INTO myisam1 VALUES (1);
204 [START] INSERT INTO myisam2 VALUES (1);
205 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
206 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
207 [END] INSERT INTO myisam2 VALUES (1);
208 include/assert.inc [No warning or error should be generated.]
209 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
210 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
211 ROLLBACK;
212 Warnings:
213 Warning 1196 Some non-transactional changed tables couldn't be rolled back
214 SET GTID_NEXT = 'AUTOMATIC';
215 include/assert.inc [Both counters should be 0]
216 ---- MyISAM and MyISAM in one statement ----
217 CREATE TRIGGER trig BEFORE INSERT ON myisam1 FOR EACH ROW INSERT INTO myisam2 VALUES (1);
218 # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=ANONYMOUS
219 SET GTID_NEXT = 'ANONYMOUS';
220 [START] INSERT INTO myisam2 VALUES (1);
221 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
222 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
223 [END] INSERT INTO myisam2 VALUES (1);
224 include/assert.inc [No warning or error should be generated.]
225 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
226 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
227 ROLLBACK;
228 SET GTID_NEXT = 'AUTOMATIC';
229 include/assert.inc [Both counters should be 0]
230 DROP TRIGGER trig;
231 ---- MyISAM followed by InnoDB, in one 'trx' ----
232 # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=ANONYMOUS
233 SET GTID_NEXT = 'ANONYMOUS';
234 BEGIN; INSERT INTO myisam1 VALUES (1);
235 [START] INSERT INTO innodb VALUES (1);
236 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
237 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
238 [END] INSERT INTO innodb VALUES (1);
239 include/assert.inc [No warning or error should be generated.]
240 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
241 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
242 ROLLBACK;
243 Warnings:
244 Warning 1196 Some non-transactional changed tables couldn't be rolled back
245 SET GTID_NEXT = 'AUTOMATIC';
246 include/assert.inc [Both counters should be 0]
247 SET SESSION BINLOG_FORMAT = MIXED;
248 Warnings:
249 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
250 ---- InnoDB followed by temp MyISAM in one trx, binlog_format=mix ----
251 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
252 # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=ANONYMOUS
253 SET GTID_NEXT = 'ANONYMOUS';
254 BEGIN; INSERT INTO innodb VALUES (1);
255 [START] INSERT INTO tmp_myisam1 VALUES (1);
256 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
257 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
258 [END] INSERT INTO tmp_myisam1 VALUES (1);
259 include/assert.inc [No warning or error should be generated.]
260 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
261 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
262 ROLLBACK;
263 Warnings:
264 Warning 1196 Some non-transactional changed tables couldn't be rolled back
265 SET GTID_NEXT = 'AUTOMATIC';
266 include/assert.inc [Both counters should be 0]
267 DROP TEMPORARY TABLE tmp_myisam1;
268 ---- InnoDB and temp MyISAM in one autocommit statement, binlog_format=mix ----
269 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
270 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
271 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
272 # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=ANONYMOUS
273 SET GTID_NEXT = 'ANONYMOUS';
274 [START] INSERT INTO innodb VALUES (1);
275 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
276 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
277 [END] INSERT INTO innodb VALUES (1);
278 include/assert.inc [No warning or error should be generated.]
279 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
280 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
281 ROLLBACK;
282 SET GTID_NEXT = 'AUTOMATIC';
283 include/assert.inc [Both counters should be 0]
284 DROP TRIGGER trig;
285 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
286 SET BINLOG_FORMAT = 'ROW';
287 Warnings:
288 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
289 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
290 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
291 ---- InnoDB followed by temp MyISAM in one trx, binlog_format='row' ----
292 # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=ANONYMOUS
293 SET GTID_NEXT = 'ANONYMOUS';
294 BEGIN; INSERT INTO innodb VALUES (1);
295 [START] INSERT INTO tmp_myisam1 VALUES (1);
296 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
297 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
298 [END] INSERT INTO tmp_myisam1 VALUES (1);
299 include/assert.inc [No warning or error should be generated.]
300 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
301 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
302 ROLLBACK;
303 Warnings:
304 Warning 1196 Some non-transactional changed tables couldn't be rolled back
305 SET GTID_NEXT = 'AUTOMATIC';
306 include/assert.inc [Both counters should be 0]
307 ---- InnoDB and temp MyISAM in one statement, binlog_format='row' ----
308 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
309 # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=ANONYMOUS
310 SET GTID_NEXT = 'ANONYMOUS';
311 [START] INSERT INTO innodb VALUES (1);
312 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
313 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
314 [END] INSERT INTO innodb VALUES (1);
315 include/assert.inc [No warning or error should be generated.]
316 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
317 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
318 ROLLBACK;
319 SET GTID_NEXT = 'AUTOMATIC';
320 include/assert.inc [Both counters should be 0]
321 DROP TRIGGER trig;
322 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
323 SET BINLOG_FORMAT = #;
324 Warnings:
325 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
326 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
327 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
328 SET SQL_LOG_BIN = 0;
329 ---- InnoDB and MyISAM in one statement, SQL_LOG_BIN=0 ----
330 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
331 # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=ANONYMOUS
332 SET GTID_NEXT = 'ANONYMOUS';
333 [START] INSERT INTO innodb VALUES (1);
334 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
335 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
336 [END] INSERT INTO innodb VALUES (1);
337 include/assert.inc [No warning or error should be generated.]
338 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
339 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
340 ROLLBACK;
341 SET GTID_NEXT = 'AUTOMATIC';
342 include/assert.inc [Both counters should be 0]
343 DROP TRIGGER trig;
344 ---- InnoDB followed by MyISAM, in one trx, SQL_LOG_BIN=0 ----
345 # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=ANONYMOUS
346 SET GTID_NEXT = 'ANONYMOUS';
347 BEGIN; INSERT INTO innodb VALUES (1);
348 [START] INSERT INTO myisam1 VALUES (1);
349 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
350 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
351 [END] INSERT INTO myisam1 VALUES (1);
352 include/assert.inc [No warning or error should be generated.]
353 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
354 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
355 ROLLBACK;
356 Warnings:
357 Warning 1196 Some non-transactional changed tables couldn't be rolled back
358 SET GTID_NEXT = 'AUTOMATIC';
359 include/assert.inc [Both counters should be 0]
360 ---- InnoDB and MyISAM in one statement inside trx, SQL_LOG_BIN=0 ----
361 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
362 # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=ANONYMOUS
363 SET GTID_NEXT = 'ANONYMOUS';
364 BEGIN;
365 [START] INSERT INTO innodb VALUES (1);
366 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
367 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
368 [END] INSERT INTO innodb VALUES (1);
369 include/assert.inc [No warning or error should be generated.]
370 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
371 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
372 ROLLBACK;
373 Warnings:
374 Warning 1196 Some non-transactional changed tables couldn't be rolled back
375 SET GTID_NEXT = 'AUTOMATIC';
376 include/assert.inc [Both counters should be 0]
377 DROP TRIGGER trig;
378 SET SQL_LOG_BIN = 1;
379 DROP TABLE myisam1, myisam2, tmp_myisam1, tmp_myisam2, innodb;
380 ######## ENFORCE_GTID_CONSISTENCY=OFF GTID_MODE=ON_PERMISSIVE GTID_NEXT=GTID ########
381 CREATE TABLE myisam1 (a INT) ENGINE = MyISAM;
382 CREATE TABLE myisam2 (a INT) ENGINE = MyISAM;
383 CREATE TABLE innodb (a INT) ENGINE = InnoDB;
384 ---- MyISAM and MyISAM in one statement ----
385 CREATE TRIGGER trig BEFORE INSERT ON myisam1 FOR EACH ROW INSERT INTO myisam2 VALUES (1);
386 # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=GTID
387 SET GTID_NEXT = 'GTID';
388 [START] INSERT INTO myisam2 VALUES (1);
389 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
390 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
391 [END] INSERT INTO myisam2 VALUES (1);
392 include/assert.inc [No warning or error should be generated.]
393 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
394 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
395 ROLLBACK;
396 SET GTID_NEXT = 'AUTOMATIC';
397 include/assert.inc [Both counters should be 0]
398 DROP TRIGGER trig;
399 SET SESSION BINLOG_FORMAT = MIXED;
400 Warnings:
401 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
402 ---- InnoDB followed by temp MyISAM in one trx, binlog_format=mix ----
403 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
404 # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=GTID
405 SET GTID_NEXT = 'GTID';
406 BEGIN; INSERT INTO innodb VALUES (1);
407 [START] INSERT INTO tmp_myisam1 VALUES (1);
408 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
409 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
410 [END] INSERT INTO tmp_myisam1 VALUES (1);
411 include/assert.inc [No warning or error should be generated.]
412 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
413 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
414 ROLLBACK;
415 Warnings:
416 Warning 1196 Some non-transactional changed tables couldn't be rolled back
417 SET GTID_NEXT = 'AUTOMATIC';
418 include/assert.inc [Both counters should be 0]
419 DROP TEMPORARY TABLE tmp_myisam1;
420 ---- InnoDB and temp MyISAM in one autocommit statement, binlog_format=mix ----
421 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
422 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
423 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
424 # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=GTID
425 SET GTID_NEXT = 'GTID';
426 [START] INSERT INTO innodb VALUES (1);
427 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
428 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
429 [END] INSERT INTO innodb VALUES (1);
430 include/assert.inc [No warning or error should be generated.]
431 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
432 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
433 ROLLBACK;
434 SET GTID_NEXT = 'AUTOMATIC';
435 include/assert.inc [Both counters should be 0]
436 DROP TRIGGER trig;
437 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
438 SET BINLOG_FORMAT = 'ROW';
439 Warnings:
440 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
441 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
442 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
443 ---- InnoDB followed by temp MyISAM in one trx, binlog_format='row' ----
444 # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=GTID
445 SET GTID_NEXT = 'GTID';
446 BEGIN; INSERT INTO innodb VALUES (1);
447 [START] INSERT INTO tmp_myisam1 VALUES (1);
448 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
449 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
450 [END] INSERT INTO tmp_myisam1 VALUES (1);
451 include/assert.inc [No warning or error should be generated.]
452 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
453 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
454 ROLLBACK;
455 Warnings:
456 Warning 1196 Some non-transactional changed tables couldn't be rolled back
457 SET GTID_NEXT = 'AUTOMATIC';
458 include/assert.inc [Both counters should be 0]
459 ---- InnoDB and temp MyISAM in one statement, binlog_format='row' ----
460 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
461 # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=GTID
462 SET GTID_NEXT = 'GTID';
463 [START] INSERT INTO innodb VALUES (1);
464 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
465 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
466 [END] INSERT INTO innodb VALUES (1);
467 include/assert.inc [No warning or error should be generated.]
468 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
469 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
470 ROLLBACK;
471 SET GTID_NEXT = 'AUTOMATIC';
472 include/assert.inc [Both counters should be 0]
473 DROP TRIGGER trig;
474 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
475 SET BINLOG_FORMAT = #;
476 Warnings:
477 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
478 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
479 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
480 SET SQL_LOG_BIN = 0;
481 ---- InnoDB and MyISAM in one statement, SQL_LOG_BIN=0 ----
482 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
483 # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=GTID
484 SET GTID_NEXT = 'GTID';
485 [START] INSERT INTO innodb VALUES (1);
486 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
487 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
488 [END] INSERT INTO innodb VALUES (1);
489 include/assert.inc [No warning or error should be generated.]
490 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
491 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
492 ROLLBACK;
493 SET GTID_NEXT = 'AUTOMATIC';
494 include/assert.inc [Both counters should be 0]
495 DROP TRIGGER trig;
496 ---- InnoDB followed by MyISAM, in one trx, SQL_LOG_BIN=0 ----
497 # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=GTID
498 SET GTID_NEXT = 'GTID';
499 BEGIN; INSERT INTO innodb VALUES (1);
500 [START] INSERT INTO myisam1 VALUES (1);
501 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
502 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
503 [END] INSERT INTO myisam1 VALUES (1);
504 include/assert.inc [No warning or error should be generated.]
505 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
506 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
507 ROLLBACK;
508 Warnings:
509 Warning 1196 Some non-transactional changed tables couldn't be rolled back
510 SET GTID_NEXT = 'AUTOMATIC';
511 include/assert.inc [Both counters should be 0]
512 ---- InnoDB and MyISAM in one statement inside trx, SQL_LOG_BIN=0 ----
513 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
514 # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=GTID
515 SET GTID_NEXT = 'GTID';
516 BEGIN;
517 [START] INSERT INTO innodb VALUES (1);
518 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
519 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
520 [END] INSERT INTO innodb VALUES (1);
521 include/assert.inc [No warning or error should be generated.]
522 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
523 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
524 ROLLBACK;
525 Warnings:
526 Warning 1196 Some non-transactional changed tables couldn't be rolled back
527 SET GTID_NEXT = 'AUTOMATIC';
528 include/assert.inc [Both counters should be 0]
529 DROP TRIGGER trig;
530 SET SQL_LOG_BIN = 1;
531 DROP TABLE myisam1, myisam2, tmp_myisam1, tmp_myisam2, innodb;
532 SET GLOBAL GTID_MODE = 1;
533 ######## ENFORCE_GTID_CONSISTENCY=OFF GTID_MODE=OFF_PERMISSIVE GTID_NEXT=AUTOMATIC ########
534 CREATE TABLE myisam1 (a INT) ENGINE = MyISAM;
535 CREATE TABLE myisam2 (a INT) ENGINE = MyISAM;
536 CREATE TABLE innodb (a INT) ENGINE = InnoDB;
537 ---- MyISAM followed by MyISAM, in one 'trx' ----
538 # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=AUTOMATIC
539 SET GTID_NEXT = 'AUTOMATIC';
540 BEGIN; INSERT INTO myisam1 VALUES (1);
541 [START] INSERT INTO myisam2 VALUES (1);
542 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
543 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
544 [END] INSERT INTO myisam2 VALUES (1);
545 include/assert.inc [No warning or error should be generated.]
546 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
547 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
548 ROLLBACK;
549 Warnings:
550 Warning 1196 Some non-transactional changed tables couldn't be rolled back
551 SET GTID_NEXT = 'AUTOMATIC';
552 include/assert.inc [Both counters should be 0]
553 ---- MyISAM and MyISAM in one statement ----
554 CREATE TRIGGER trig BEFORE INSERT ON myisam1 FOR EACH ROW INSERT INTO myisam2 VALUES (1);
555 # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=AUTOMATIC
556 SET GTID_NEXT = 'AUTOMATIC';
557 [START] INSERT INTO myisam2 VALUES (1);
558 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
559 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
560 [END] INSERT INTO myisam2 VALUES (1);
561 include/assert.inc [No warning or error should be generated.]
562 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
563 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
564 ROLLBACK;
565 SET GTID_NEXT = 'AUTOMATIC';
566 include/assert.inc [Both counters should be 0]
567 DROP TRIGGER trig;
568 ---- MyISAM followed by InnoDB, in one 'trx' ----
569 # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=AUTOMATIC
570 SET GTID_NEXT = 'AUTOMATIC';
571 BEGIN; INSERT INTO myisam1 VALUES (1);
572 [START] INSERT INTO innodb VALUES (1);
573 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
574 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
575 [END] INSERT INTO innodb VALUES (1);
576 include/assert.inc [No warning or error should be generated.]
577 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
578 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
579 ROLLBACK;
580 Warnings:
581 Warning 1196 Some non-transactional changed tables couldn't be rolled back
582 SET GTID_NEXT = 'AUTOMATIC';
583 include/assert.inc [Both counters should be 0]
584 SET SESSION BINLOG_FORMAT = MIXED;
585 Warnings:
586 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
587 ---- InnoDB followed by temp MyISAM in one trx, binlog_format=mix ----
588 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
589 # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=AUTOMATIC
590 SET GTID_NEXT = 'AUTOMATIC';
591 BEGIN; INSERT INTO innodb VALUES (1);
592 [START] INSERT INTO tmp_myisam1 VALUES (1);
593 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
594 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
595 [END] INSERT INTO tmp_myisam1 VALUES (1);
596 include/assert.inc [No warning or error should be generated.]
597 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
598 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
599 ROLLBACK;
600 Warnings:
601 Warning 1196 Some non-transactional changed tables couldn't be rolled back
602 SET GTID_NEXT = 'AUTOMATIC';
603 include/assert.inc [Both counters should be 0]
604 DROP TEMPORARY TABLE tmp_myisam1;
605 ---- InnoDB and temp MyISAM in one autocommit statement, binlog_format=mix ----
606 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
607 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
608 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
609 # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=AUTOMATIC
610 SET GTID_NEXT = 'AUTOMATIC';
611 [START] INSERT INTO innodb VALUES (1);
612 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
613 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
614 [END] INSERT INTO innodb VALUES (1);
615 include/assert.inc [No warning or error should be generated.]
616 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
617 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
618 ROLLBACK;
619 SET GTID_NEXT = 'AUTOMATIC';
620 include/assert.inc [Both counters should be 0]
621 DROP TRIGGER trig;
622 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
623 SET BINLOG_FORMAT = 'ROW';
624 Warnings:
625 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
626 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
627 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
628 ---- InnoDB followed by temp MyISAM in one trx, binlog_format='row' ----
629 # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=AUTOMATIC
630 SET GTID_NEXT = 'AUTOMATIC';
631 BEGIN; INSERT INTO innodb VALUES (1);
632 [START] INSERT INTO tmp_myisam1 VALUES (1);
633 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
634 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
635 [END] INSERT INTO tmp_myisam1 VALUES (1);
636 include/assert.inc [No warning or error should be generated.]
637 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
638 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
639 ROLLBACK;
640 Warnings:
641 Warning 1196 Some non-transactional changed tables couldn't be rolled back
642 SET GTID_NEXT = 'AUTOMATIC';
643 include/assert.inc [Both counters should be 0]
644 ---- InnoDB and temp MyISAM in one statement, binlog_format='row' ----
645 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
646 # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=AUTOMATIC
647 SET GTID_NEXT = 'AUTOMATIC';
648 [START] INSERT INTO innodb VALUES (1);
649 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
650 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
651 [END] INSERT INTO innodb VALUES (1);
652 include/assert.inc [No warning or error should be generated.]
653 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
654 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
655 ROLLBACK;
656 SET GTID_NEXT = 'AUTOMATIC';
657 include/assert.inc [Both counters should be 0]
658 DROP TRIGGER trig;
659 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
660 SET BINLOG_FORMAT = #;
661 Warnings:
662 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
663 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
664 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
665 SET SQL_LOG_BIN = 0;
666 ---- InnoDB and MyISAM in one statement, SQL_LOG_BIN=0 ----
667 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
668 # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=AUTOMATIC
669 SET GTID_NEXT = 'AUTOMATIC';
670 [START] INSERT INTO innodb VALUES (1);
671 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
672 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
673 [END] INSERT INTO innodb VALUES (1);
674 include/assert.inc [No warning or error should be generated.]
675 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
676 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
677 ROLLBACK;
678 SET GTID_NEXT = 'AUTOMATIC';
679 include/assert.inc [Both counters should be 0]
680 DROP TRIGGER trig;
681 ---- InnoDB followed by MyISAM, in one trx, SQL_LOG_BIN=0 ----
682 # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=AUTOMATIC
683 SET GTID_NEXT = 'AUTOMATIC';
684 BEGIN; INSERT INTO innodb VALUES (1);
685 [START] INSERT INTO myisam1 VALUES (1);
686 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
687 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
688 [END] INSERT INTO myisam1 VALUES (1);
689 include/assert.inc [No warning or error should be generated.]
690 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
691 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
692 ROLLBACK;
693 Warnings:
694 Warning 1196 Some non-transactional changed tables couldn't be rolled back
695 SET GTID_NEXT = 'AUTOMATIC';
696 include/assert.inc [Both counters should be 0]
697 ---- InnoDB and MyISAM in one statement inside trx, SQL_LOG_BIN=0 ----
698 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
699 # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=AUTOMATIC
700 SET GTID_NEXT = 'AUTOMATIC';
701 BEGIN;
702 [START] INSERT INTO innodb VALUES (1);
703 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
704 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
705 [END] INSERT INTO innodb VALUES (1);
706 include/assert.inc [No warning or error should be generated.]
707 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
708 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
709 ROLLBACK;
710 Warnings:
711 Warning 1196 Some non-transactional changed tables couldn't be rolled back
712 SET GTID_NEXT = 'AUTOMATIC';
713 include/assert.inc [Both counters should be 0]
714 DROP TRIGGER trig;
715 SET SQL_LOG_BIN = 1;
716 DROP TABLE myisam1, myisam2, tmp_myisam1, tmp_myisam2, innodb;
717 ######## ENFORCE_GTID_CONSISTENCY=OFF GTID_MODE=OFF_PERMISSIVE GTID_NEXT=ANONYMOUS ########
718 CREATE TABLE myisam1 (a INT) ENGINE = MyISAM;
719 CREATE TABLE myisam2 (a INT) ENGINE = MyISAM;
720 CREATE TABLE innodb (a INT) ENGINE = InnoDB;
721 ---- MyISAM followed by MyISAM, in one 'trx' ----
722 # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=ANONYMOUS
723 SET GTID_NEXT = 'ANONYMOUS';
724 BEGIN; INSERT INTO myisam1 VALUES (1);
725 [START] INSERT INTO myisam2 VALUES (1);
726 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
727 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
728 [END] INSERT INTO myisam2 VALUES (1);
729 include/assert.inc [No warning or error should be generated.]
730 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
731 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
732 ROLLBACK;
733 Warnings:
734 Warning 1196 Some non-transactional changed tables couldn't be rolled back
735 SET GTID_NEXT = 'AUTOMATIC';
736 include/assert.inc [Both counters should be 0]
737 ---- MyISAM and MyISAM in one statement ----
738 CREATE TRIGGER trig BEFORE INSERT ON myisam1 FOR EACH ROW INSERT INTO myisam2 VALUES (1);
739 # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=ANONYMOUS
740 SET GTID_NEXT = 'ANONYMOUS';
741 [START] INSERT INTO myisam2 VALUES (1);
742 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
743 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
744 [END] INSERT INTO myisam2 VALUES (1);
745 include/assert.inc [No warning or error should be generated.]
746 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
747 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
748 ROLLBACK;
749 SET GTID_NEXT = 'AUTOMATIC';
750 include/assert.inc [Both counters should be 0]
751 DROP TRIGGER trig;
752 ---- MyISAM followed by InnoDB, in one 'trx' ----
753 # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=ANONYMOUS
754 SET GTID_NEXT = 'ANONYMOUS';
755 BEGIN; INSERT INTO myisam1 VALUES (1);
756 [START] INSERT INTO innodb VALUES (1);
757 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
758 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
759 [END] INSERT INTO innodb VALUES (1);
760 include/assert.inc [No warning or error should be generated.]
761 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
762 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
763 ROLLBACK;
764 Warnings:
765 Warning 1196 Some non-transactional changed tables couldn't be rolled back
766 SET GTID_NEXT = 'AUTOMATIC';
767 include/assert.inc [Both counters should be 0]
768 SET SESSION BINLOG_FORMAT = MIXED;
769 Warnings:
770 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
771 ---- InnoDB followed by temp MyISAM in one trx, binlog_format=mix ----
772 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
773 # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=ANONYMOUS
774 SET GTID_NEXT = 'ANONYMOUS';
775 BEGIN; INSERT INTO innodb VALUES (1);
776 [START] INSERT INTO tmp_myisam1 VALUES (1);
777 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
778 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
779 [END] INSERT INTO tmp_myisam1 VALUES (1);
780 include/assert.inc [No warning or error should be generated.]
781 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
782 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
783 ROLLBACK;
784 Warnings:
785 Warning 1196 Some non-transactional changed tables couldn't be rolled back
786 SET GTID_NEXT = 'AUTOMATIC';
787 include/assert.inc [Both counters should be 0]
788 DROP TEMPORARY TABLE tmp_myisam1;
789 ---- InnoDB and temp MyISAM in one autocommit statement, binlog_format=mix ----
790 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
791 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
792 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
793 # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=ANONYMOUS
794 SET GTID_NEXT = 'ANONYMOUS';
795 [START] INSERT INTO innodb VALUES (1);
796 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
797 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
798 [END] INSERT INTO innodb VALUES (1);
799 include/assert.inc [No warning or error should be generated.]
800 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
801 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
802 ROLLBACK;
803 SET GTID_NEXT = 'AUTOMATIC';
804 include/assert.inc [Both counters should be 0]
805 DROP TRIGGER trig;
806 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
807 SET BINLOG_FORMAT = 'ROW';
808 Warnings:
809 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
810 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
811 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
812 ---- InnoDB followed by temp MyISAM in one trx, binlog_format='row' ----
813 # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=ANONYMOUS
814 SET GTID_NEXT = 'ANONYMOUS';
815 BEGIN; INSERT INTO innodb VALUES (1);
816 [START] INSERT INTO tmp_myisam1 VALUES (1);
817 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
818 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
819 [END] INSERT INTO tmp_myisam1 VALUES (1);
820 include/assert.inc [No warning or error should be generated.]
821 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
822 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
823 ROLLBACK;
824 Warnings:
825 Warning 1196 Some non-transactional changed tables couldn't be rolled back
826 SET GTID_NEXT = 'AUTOMATIC';
827 include/assert.inc [Both counters should be 0]
828 ---- InnoDB and temp MyISAM in one statement, binlog_format='row' ----
829 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
830 # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=ANONYMOUS
831 SET GTID_NEXT = 'ANONYMOUS';
832 [START] INSERT INTO innodb VALUES (1);
833 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
834 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
835 [END] INSERT INTO innodb VALUES (1);
836 include/assert.inc [No warning or error should be generated.]
837 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
838 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
839 ROLLBACK;
840 SET GTID_NEXT = 'AUTOMATIC';
841 include/assert.inc [Both counters should be 0]
842 DROP TRIGGER trig;
843 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
844 SET BINLOG_FORMAT = #;
845 Warnings:
846 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
847 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
848 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
849 SET SQL_LOG_BIN = 0;
850 ---- InnoDB and MyISAM in one statement, SQL_LOG_BIN=0 ----
851 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
852 # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=ANONYMOUS
853 SET GTID_NEXT = 'ANONYMOUS';
854 [START] INSERT INTO innodb VALUES (1);
855 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
856 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
857 [END] INSERT INTO innodb VALUES (1);
858 include/assert.inc [No warning or error should be generated.]
859 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
860 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
861 ROLLBACK;
862 SET GTID_NEXT = 'AUTOMATIC';
863 include/assert.inc [Both counters should be 0]
864 DROP TRIGGER trig;
865 ---- InnoDB followed by MyISAM, in one trx, SQL_LOG_BIN=0 ----
866 # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=ANONYMOUS
867 SET GTID_NEXT = 'ANONYMOUS';
868 BEGIN; INSERT INTO innodb VALUES (1);
869 [START] INSERT INTO myisam1 VALUES (1);
870 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
871 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
872 [END] INSERT INTO myisam1 VALUES (1);
873 include/assert.inc [No warning or error should be generated.]
874 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
875 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
876 ROLLBACK;
877 Warnings:
878 Warning 1196 Some non-transactional changed tables couldn't be rolled back
879 SET GTID_NEXT = 'AUTOMATIC';
880 include/assert.inc [Both counters should be 0]
881 ---- InnoDB and MyISAM in one statement inside trx, SQL_LOG_BIN=0 ----
882 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
883 # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=ANONYMOUS
884 SET GTID_NEXT = 'ANONYMOUS';
885 BEGIN;
886 [START] INSERT INTO innodb VALUES (1);
887 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
888 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
889 [END] INSERT INTO innodb VALUES (1);
890 include/assert.inc [No warning or error should be generated.]
891 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
892 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
893 ROLLBACK;
894 Warnings:
895 Warning 1196 Some non-transactional changed tables couldn't be rolled back
896 SET GTID_NEXT = 'AUTOMATIC';
897 include/assert.inc [Both counters should be 0]
898 DROP TRIGGER trig;
899 SET SQL_LOG_BIN = 1;
900 DROP TABLE myisam1, myisam2, tmp_myisam1, tmp_myisam2, innodb;
901 ######## ENFORCE_GTID_CONSISTENCY=OFF GTID_MODE=OFF_PERMISSIVE GTID_NEXT=GTID ########
902 CREATE TABLE myisam1 (a INT) ENGINE = MyISAM;
903 CREATE TABLE myisam2 (a INT) ENGINE = MyISAM;
904 CREATE TABLE innodb (a INT) ENGINE = InnoDB;
905 ---- MyISAM and MyISAM in one statement ----
906 CREATE TRIGGER trig BEFORE INSERT ON myisam1 FOR EACH ROW INSERT INTO myisam2 VALUES (1);
907 # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=GTID
908 SET GTID_NEXT = 'GTID';
909 [START] INSERT INTO myisam2 VALUES (1);
910 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
911 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
912 [END] INSERT INTO myisam2 VALUES (1);
913 include/assert.inc [No warning or error should be generated.]
914 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
915 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
916 ROLLBACK;
917 SET GTID_NEXT = 'AUTOMATIC';
918 include/assert.inc [Both counters should be 0]
919 DROP TRIGGER trig;
920 SET SESSION BINLOG_FORMAT = MIXED;
921 Warnings:
922 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
923 ---- InnoDB followed by temp MyISAM in one trx, binlog_format=mix ----
924 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
925 # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=GTID
926 SET GTID_NEXT = 'GTID';
927 BEGIN; INSERT INTO innodb VALUES (1);
928 [START] INSERT INTO tmp_myisam1 VALUES (1);
929 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
930 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
931 [END] INSERT INTO tmp_myisam1 VALUES (1);
932 include/assert.inc [No warning or error should be generated.]
933 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
934 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
935 ROLLBACK;
936 Warnings:
937 Warning 1196 Some non-transactional changed tables couldn't be rolled back
938 SET GTID_NEXT = 'AUTOMATIC';
939 include/assert.inc [Both counters should be 0]
940 DROP TEMPORARY TABLE tmp_myisam1;
941 ---- InnoDB and temp MyISAM in one autocommit statement, binlog_format=mix ----
942 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
943 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
944 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
945 # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=GTID
946 SET GTID_NEXT = 'GTID';
947 [START] INSERT INTO innodb VALUES (1);
948 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
949 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
950 [END] INSERT INTO innodb VALUES (1);
951 include/assert.inc [No warning or error should be generated.]
952 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
953 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
954 ROLLBACK;
955 SET GTID_NEXT = 'AUTOMATIC';
956 include/assert.inc [Both counters should be 0]
957 DROP TRIGGER trig;
958 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
959 SET BINLOG_FORMAT = 'ROW';
960 Warnings:
961 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
962 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
963 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
964 ---- InnoDB followed by temp MyISAM in one trx, binlog_format='row' ----
965 # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=GTID
966 SET GTID_NEXT = 'GTID';
967 BEGIN; INSERT INTO innodb VALUES (1);
968 [START] INSERT INTO tmp_myisam1 VALUES (1);
969 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
970 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
971 [END] INSERT INTO tmp_myisam1 VALUES (1);
972 include/assert.inc [No warning or error should be generated.]
973 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
974 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
975 ROLLBACK;
976 Warnings:
977 Warning 1196 Some non-transactional changed tables couldn't be rolled back
978 SET GTID_NEXT = 'AUTOMATIC';
979 include/assert.inc [Both counters should be 0]
980 ---- InnoDB and temp MyISAM in one statement, binlog_format='row' ----
981 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
982 # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=GTID
983 SET GTID_NEXT = 'GTID';
984 [START] INSERT INTO innodb VALUES (1);
985 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
986 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
987 [END] INSERT INTO innodb VALUES (1);
988 include/assert.inc [No warning or error should be generated.]
989 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
990 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
991 ROLLBACK;
992 SET GTID_NEXT = 'AUTOMATIC';
993 include/assert.inc [Both counters should be 0]
994 DROP TRIGGER trig;
995 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
996 SET BINLOG_FORMAT = #;
997 Warnings:
998 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
999 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
1000 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
1001 SET SQL_LOG_BIN = 0;
1002 ---- InnoDB and MyISAM in one statement, SQL_LOG_BIN=0 ----
1003 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
1004 # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=GTID
1005 SET GTID_NEXT = 'GTID';
1006 [START] INSERT INTO innodb VALUES (1);
1007 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1008 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1009 [END] INSERT INTO innodb VALUES (1);
1010 include/assert.inc [No warning or error should be generated.]
1011 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1012 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1013 ROLLBACK;
1014 SET GTID_NEXT = 'AUTOMATIC';
1015 include/assert.inc [Both counters should be 0]
1016 DROP TRIGGER trig;
1017 ---- InnoDB followed by MyISAM, in one trx, SQL_LOG_BIN=0 ----
1018 # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=GTID
1019 SET GTID_NEXT = 'GTID';
1020 BEGIN; INSERT INTO innodb VALUES (1);
1021 [START] INSERT INTO myisam1 VALUES (1);
1022 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1023 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1024 [END] INSERT INTO myisam1 VALUES (1);
1025 include/assert.inc [No warning or error should be generated.]
1026 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1027 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1028 ROLLBACK;
1029 Warnings:
1030 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1031 SET GTID_NEXT = 'AUTOMATIC';
1032 include/assert.inc [Both counters should be 0]
1033 ---- InnoDB and MyISAM in one statement inside trx, SQL_LOG_BIN=0 ----
1034 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
1035 # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=GTID
1036 SET GTID_NEXT = 'GTID';
1037 BEGIN;
1038 [START] INSERT INTO innodb VALUES (1);
1039 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1040 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1041 [END] INSERT INTO innodb VALUES (1);
1042 include/assert.inc [No warning or error should be generated.]
1043 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1044 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1045 ROLLBACK;
1046 Warnings:
1047 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1048 SET GTID_NEXT = 'AUTOMATIC';
1049 include/assert.inc [Both counters should be 0]
1050 DROP TRIGGER trig;
1051 SET SQL_LOG_BIN = 1;
1052 DROP TABLE myisam1, myisam2, tmp_myisam1, tmp_myisam2, innodb;
1053 SET GLOBAL GTID_MODE = 0;
1054 ######## ENFORCE_GTID_CONSISTENCY=OFF GTID_MODE=OFF GTID_NEXT=AUTOMATIC ########
1055 CREATE TABLE myisam1 (a INT) ENGINE = MyISAM;
1056 CREATE TABLE myisam2 (a INT) ENGINE = MyISAM;
1057 CREATE TABLE innodb (a INT) ENGINE = InnoDB;
1058 ---- MyISAM followed by MyISAM, in one 'trx' ----
1059 # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=AUTOMATIC
1060 SET GTID_NEXT = 'AUTOMATIC';
1061 BEGIN; INSERT INTO myisam1 VALUES (1);
1062 [START] INSERT INTO myisam2 VALUES (1);
1063 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1064 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1065 [END] INSERT INTO myisam2 VALUES (1);
1066 include/assert.inc [No warning or error should be generated.]
1067 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1068 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1069 ROLLBACK;
1070 Warnings:
1071 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1072 SET GTID_NEXT = 'AUTOMATIC';
1073 include/assert.inc [Both counters should be 0]
1074 ---- MyISAM and MyISAM in one statement ----
1075 CREATE TRIGGER trig BEFORE INSERT ON myisam1 FOR EACH ROW INSERT INTO myisam2 VALUES (1);
1076 # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=AUTOMATIC
1077 SET GTID_NEXT = 'AUTOMATIC';
1078 [START] INSERT INTO myisam2 VALUES (1);
1079 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1080 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1081 [END] INSERT INTO myisam2 VALUES (1);
1082 include/assert.inc [No warning or error should be generated.]
1083 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1084 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1085 ROLLBACK;
1086 SET GTID_NEXT = 'AUTOMATIC';
1087 include/assert.inc [Both counters should be 0]
1088 DROP TRIGGER trig;
1089 ---- MyISAM followed by InnoDB, in one 'trx' ----
1090 # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=AUTOMATIC
1091 SET GTID_NEXT = 'AUTOMATIC';
1092 BEGIN; INSERT INTO myisam1 VALUES (1);
1093 [START] INSERT INTO innodb VALUES (1);
1094 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1095 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1096 [END] INSERT INTO innodb VALUES (1);
1097 include/assert.inc [No warning or error should be generated.]
1098 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1099 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1100 ROLLBACK;
1101 Warnings:
1102 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1103 SET GTID_NEXT = 'AUTOMATIC';
1104 include/assert.inc [Both counters should be 0]
1105 SET SESSION BINLOG_FORMAT = MIXED;
1106 Warnings:
1107 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
1108 ---- InnoDB followed by temp MyISAM in one trx, binlog_format=mix ----
1109 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
1110 # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=AUTOMATIC
1111 SET GTID_NEXT = 'AUTOMATIC';
1112 BEGIN; INSERT INTO innodb VALUES (1);
1113 [START] INSERT INTO tmp_myisam1 VALUES (1);
1114 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1115 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1116 [END] INSERT INTO tmp_myisam1 VALUES (1);
1117 include/assert.inc [No warning or error should be generated.]
1118 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1119 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1120 ROLLBACK;
1121 Warnings:
1122 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1123 SET GTID_NEXT = 'AUTOMATIC';
1124 include/assert.inc [Both counters should be 0]
1125 DROP TEMPORARY TABLE tmp_myisam1;
1126 ---- InnoDB and temp MyISAM in one autocommit statement, binlog_format=mix ----
1127 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
1128 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
1129 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
1130 # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=AUTOMATIC
1131 SET GTID_NEXT = 'AUTOMATIC';
1132 [START] INSERT INTO innodb VALUES (1);
1133 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1134 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1135 [END] INSERT INTO innodb VALUES (1);
1136 include/assert.inc [No warning or error should be generated.]
1137 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1138 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1139 ROLLBACK;
1140 SET GTID_NEXT = 'AUTOMATIC';
1141 include/assert.inc [Both counters should be 0]
1142 DROP TRIGGER trig;
1143 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
1144 SET BINLOG_FORMAT = 'ROW';
1145 Warnings:
1146 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
1147 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
1148 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
1149 ---- InnoDB followed by temp MyISAM in one trx, binlog_format='row' ----
1150 # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=AUTOMATIC
1151 SET GTID_NEXT = 'AUTOMATIC';
1152 BEGIN; INSERT INTO innodb VALUES (1);
1153 [START] INSERT INTO tmp_myisam1 VALUES (1);
1154 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1155 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1156 [END] INSERT INTO tmp_myisam1 VALUES (1);
1157 include/assert.inc [No warning or error should be generated.]
1158 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1159 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1160 ROLLBACK;
1161 Warnings:
1162 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1163 SET GTID_NEXT = 'AUTOMATIC';
1164 include/assert.inc [Both counters should be 0]
1165 ---- InnoDB and temp MyISAM in one statement, binlog_format='row' ----
1166 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
1167 # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=AUTOMATIC
1168 SET GTID_NEXT = 'AUTOMATIC';
1169 [START] INSERT INTO innodb VALUES (1);
1170 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1171 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1172 [END] INSERT INTO innodb VALUES (1);
1173 include/assert.inc [No warning or error should be generated.]
1174 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1175 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1176 ROLLBACK;
1177 SET GTID_NEXT = 'AUTOMATIC';
1178 include/assert.inc [Both counters should be 0]
1179 DROP TRIGGER trig;
1180 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
1181 SET BINLOG_FORMAT = #;
1182 Warnings:
1183 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
1184 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
1185 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
1186 SET SQL_LOG_BIN = 0;
1187 ---- InnoDB and MyISAM in one statement, SQL_LOG_BIN=0 ----
1188 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
1189 # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=AUTOMATIC
1190 SET GTID_NEXT = 'AUTOMATIC';
1191 [START] INSERT INTO innodb VALUES (1);
1192 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1193 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1194 [END] INSERT INTO innodb VALUES (1);
1195 include/assert.inc [No warning or error should be generated.]
1196 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1197 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1198 ROLLBACK;
1199 SET GTID_NEXT = 'AUTOMATIC';
1200 include/assert.inc [Both counters should be 0]
1201 DROP TRIGGER trig;
1202 ---- InnoDB followed by MyISAM, in one trx, SQL_LOG_BIN=0 ----
1203 # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=AUTOMATIC
1204 SET GTID_NEXT = 'AUTOMATIC';
1205 BEGIN; INSERT INTO innodb VALUES (1);
1206 [START] INSERT INTO myisam1 VALUES (1);
1207 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1208 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1209 [END] INSERT INTO myisam1 VALUES (1);
1210 include/assert.inc [No warning or error should be generated.]
1211 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1212 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1213 ROLLBACK;
1214 Warnings:
1215 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1216 SET GTID_NEXT = 'AUTOMATIC';
1217 include/assert.inc [Both counters should be 0]
1218 ---- InnoDB and MyISAM in one statement inside trx, SQL_LOG_BIN=0 ----
1219 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
1220 # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=AUTOMATIC
1221 SET GTID_NEXT = 'AUTOMATIC';
1222 BEGIN;
1223 [START] INSERT INTO innodb VALUES (1);
1224 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1225 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1226 [END] INSERT INTO innodb VALUES (1);
1227 include/assert.inc [No warning or error should be generated.]
1228 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1229 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1230 ROLLBACK;
1231 Warnings:
1232 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1233 SET GTID_NEXT = 'AUTOMATIC';
1234 include/assert.inc [Both counters should be 0]
1235 DROP TRIGGER trig;
1236 SET SQL_LOG_BIN = 1;
1237 DROP TABLE myisam1, myisam2, tmp_myisam1, tmp_myisam2, innodb;
1238 ######## ENFORCE_GTID_CONSISTENCY=OFF GTID_MODE=OFF GTID_NEXT=ANONYMOUS ########
1239 CREATE TABLE myisam1 (a INT) ENGINE = MyISAM;
1240 CREATE TABLE myisam2 (a INT) ENGINE = MyISAM;
1241 CREATE TABLE innodb (a INT) ENGINE = InnoDB;
1242 ---- MyISAM followed by MyISAM, in one 'trx' ----
1243 # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=ANONYMOUS
1244 SET GTID_NEXT = 'ANONYMOUS';
1245 BEGIN; INSERT INTO myisam1 VALUES (1);
1246 [START] INSERT INTO myisam2 VALUES (1);
1247 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1248 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1249 [END] INSERT INTO myisam2 VALUES (1);
1250 include/assert.inc [No warning or error should be generated.]
1251 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1252 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1253 ROLLBACK;
1254 Warnings:
1255 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1256 SET GTID_NEXT = 'AUTOMATIC';
1257 include/assert.inc [Both counters should be 0]
1258 ---- MyISAM and MyISAM in one statement ----
1259 CREATE TRIGGER trig BEFORE INSERT ON myisam1 FOR EACH ROW INSERT INTO myisam2 VALUES (1);
1260 # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=ANONYMOUS
1261 SET GTID_NEXT = 'ANONYMOUS';
1262 [START] INSERT INTO myisam2 VALUES (1);
1263 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1264 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1265 [END] INSERT INTO myisam2 VALUES (1);
1266 include/assert.inc [No warning or error should be generated.]
1267 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1268 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1269 ROLLBACK;
1270 SET GTID_NEXT = 'AUTOMATIC';
1271 include/assert.inc [Both counters should be 0]
1272 DROP TRIGGER trig;
1273 ---- MyISAM followed by InnoDB, in one 'trx' ----
1274 # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=ANONYMOUS
1275 SET GTID_NEXT = 'ANONYMOUS';
1276 BEGIN; INSERT INTO myisam1 VALUES (1);
1277 [START] INSERT INTO innodb VALUES (1);
1278 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1279 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1280 [END] INSERT INTO innodb VALUES (1);
1281 include/assert.inc [No warning or error should be generated.]
1282 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1283 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1284 ROLLBACK;
1285 Warnings:
1286 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1287 SET GTID_NEXT = 'AUTOMATIC';
1288 include/assert.inc [Both counters should be 0]
1289 SET SESSION BINLOG_FORMAT = MIXED;
1290 Warnings:
1291 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
1292 ---- InnoDB followed by temp MyISAM in one trx, binlog_format=mix ----
1293 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
1294 # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=ANONYMOUS
1295 SET GTID_NEXT = 'ANONYMOUS';
1296 BEGIN; INSERT INTO innodb VALUES (1);
1297 [START] INSERT INTO tmp_myisam1 VALUES (1);
1298 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1299 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1300 [END] INSERT INTO tmp_myisam1 VALUES (1);
1301 include/assert.inc [No warning or error should be generated.]
1302 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1303 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1304 ROLLBACK;
1305 Warnings:
1306 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1307 SET GTID_NEXT = 'AUTOMATIC';
1308 include/assert.inc [Both counters should be 0]
1309 DROP TEMPORARY TABLE tmp_myisam1;
1310 ---- InnoDB and temp MyISAM in one autocommit statement, binlog_format=mix ----
1311 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
1312 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
1313 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
1314 # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=ANONYMOUS
1315 SET GTID_NEXT = 'ANONYMOUS';
1316 [START] INSERT INTO innodb VALUES (1);
1317 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1318 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1319 [END] INSERT INTO innodb VALUES (1);
1320 include/assert.inc [No warning or error should be generated.]
1321 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1322 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1323 ROLLBACK;
1324 SET GTID_NEXT = 'AUTOMATIC';
1325 include/assert.inc [Both counters should be 0]
1326 DROP TRIGGER trig;
1327 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
1328 SET BINLOG_FORMAT = 'ROW';
1329 Warnings:
1330 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
1331 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
1332 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
1333 ---- InnoDB followed by temp MyISAM in one trx, binlog_format='row' ----
1334 # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=ANONYMOUS
1335 SET GTID_NEXT = 'ANONYMOUS';
1336 BEGIN; INSERT INTO innodb VALUES (1);
1337 [START] INSERT INTO tmp_myisam1 VALUES (1);
1338 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1339 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1340 [END] INSERT INTO tmp_myisam1 VALUES (1);
1341 include/assert.inc [No warning or error should be generated.]
1342 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1343 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1344 ROLLBACK;
1345 Warnings:
1346 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1347 SET GTID_NEXT = 'AUTOMATIC';
1348 include/assert.inc [Both counters should be 0]
1349 ---- InnoDB and temp MyISAM in one statement, binlog_format='row' ----
1350 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
1351 # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=ANONYMOUS
1352 SET GTID_NEXT = 'ANONYMOUS';
1353 [START] INSERT INTO innodb VALUES (1);
1354 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1355 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1356 [END] INSERT INTO innodb VALUES (1);
1357 include/assert.inc [No warning or error should be generated.]
1358 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1359 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1360 ROLLBACK;
1361 SET GTID_NEXT = 'AUTOMATIC';
1362 include/assert.inc [Both counters should be 0]
1363 DROP TRIGGER trig;
1364 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
1365 SET BINLOG_FORMAT = #;
1366 Warnings:
1367 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
1368 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
1369 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
1370 SET SQL_LOG_BIN = 0;
1371 ---- InnoDB and MyISAM in one statement, SQL_LOG_BIN=0 ----
1372 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
1373 # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=ANONYMOUS
1374 SET GTID_NEXT = 'ANONYMOUS';
1375 [START] INSERT INTO innodb VALUES (1);
1376 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1377 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1378 [END] INSERT INTO innodb VALUES (1);
1379 include/assert.inc [No warning or error should be generated.]
1380 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1381 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1382 ROLLBACK;
1383 SET GTID_NEXT = 'AUTOMATIC';
1384 include/assert.inc [Both counters should be 0]
1385 DROP TRIGGER trig;
1386 ---- InnoDB followed by MyISAM, in one trx, SQL_LOG_BIN=0 ----
1387 # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=ANONYMOUS
1388 SET GTID_NEXT = 'ANONYMOUS';
1389 BEGIN; INSERT INTO innodb VALUES (1);
1390 [START] INSERT INTO myisam1 VALUES (1);
1391 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1392 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1393 [END] INSERT INTO myisam1 VALUES (1);
1394 include/assert.inc [No warning or error should be generated.]
1395 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1396 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1397 ROLLBACK;
1398 Warnings:
1399 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1400 SET GTID_NEXT = 'AUTOMATIC';
1401 include/assert.inc [Both counters should be 0]
1402 ---- InnoDB and MyISAM in one statement inside trx, SQL_LOG_BIN=0 ----
1403 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
1404 # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=ANONYMOUS
1405 SET GTID_NEXT = 'ANONYMOUS';
1406 BEGIN;
1407 [START] INSERT INTO innodb VALUES (1);
1408 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1409 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1410 [END] INSERT INTO innodb VALUES (1);
1411 include/assert.inc [No warning or error should be generated.]
1412 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1413 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1414 ROLLBACK;
1415 Warnings:
1416 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1417 SET GTID_NEXT = 'AUTOMATIC';
1418 include/assert.inc [Both counters should be 0]
1419 DROP TRIGGER trig;
1420 SET SQL_LOG_BIN = 1;
1421 DROP TABLE myisam1, myisam2, tmp_myisam1, tmp_myisam2, innodb;
1422 SET GLOBAL ENFORCE_GTID_CONSISTENCY = 1;
1423 SET GLOBAL GTID_MODE = OFF_PERMISSIVE;
1424 SET GLOBAL GTID_MODE = ON_PERMISSIVE;
1425 SET GLOBAL GTID_MODE = ON;
1426 SET GLOBAL GTID_MODE = 3;
1427 ######## ENFORCE_GTID_CONSISTENCY=ERROR GTID_MODE=ON GTID_NEXT=AUTOMATIC ########
1428 CREATE TABLE myisam1 (a INT) ENGINE = MyISAM;
1429 CREATE TABLE myisam2 (a INT) ENGINE = MyISAM;
1430 CREATE TABLE innodb (a INT) ENGINE = InnoDB;
1431 ---- MyISAM followed by MyISAM, in one 'trx' ----
1432 # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=AUTOMATIC
1433 SET GTID_NEXT = 'AUTOMATIC';
1434 BEGIN; INSERT INTO myisam1 VALUES (1);
1435 [START] INSERT INTO myisam2 VALUES (1);
1436 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1437 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1438 [END] INSERT INTO myisam2 VALUES (1);
1439 include/assert.inc [No warning or error should be generated.]
1440 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1441 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1442 ROLLBACK;
1443 Warnings:
1444 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1445 SET GTID_NEXT = 'AUTOMATIC';
1446 include/assert.inc [Both counters should be 0]
1447 ---- MyISAM and MyISAM in one statement ----
1448 CREATE TRIGGER trig BEFORE INSERT ON myisam1 FOR EACH ROW INSERT INTO myisam2 VALUES (1);
1449 # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=AUTOMATIC
1450 SET GTID_NEXT = 'AUTOMATIC';
1451 [START] INSERT INTO myisam2 VALUES (1);
1452 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1453 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1454 [END] INSERT INTO myisam2 VALUES (1);
1455 include/assert.inc [No warning or error should be generated.]
1456 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1457 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1458 ROLLBACK;
1459 SET GTID_NEXT = 'AUTOMATIC';
1460 include/assert.inc [Both counters should be 0]
1461 DROP TRIGGER trig;
1462 ---- MyISAM followed by InnoDB, in one 'trx' ----
1463 # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=AUTOMATIC
1464 SET GTID_NEXT = 'AUTOMATIC';
1465 BEGIN; INSERT INTO myisam1 VALUES (1);
1466 [START] INSERT INTO innodb VALUES (1);
1467 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1468 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1469 [END] INSERT INTO innodb VALUES (1);
1470 include/assert.inc [No warning or error should be generated.]
1471 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1472 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1473 ROLLBACK;
1474 Warnings:
1475 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1476 SET GTID_NEXT = 'AUTOMATIC';
1477 include/assert.inc [Both counters should be 0]
1478 SET SESSION BINLOG_FORMAT = MIXED;
1479 Warnings:
1480 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
1481 ---- InnoDB followed by temp MyISAM in one trx, binlog_format=mix ----
1482 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
1483 # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=AUTOMATIC
1484 SET GTID_NEXT = 'AUTOMATIC';
1485 BEGIN; INSERT INTO innodb VALUES (1);
1486 [START] INSERT INTO tmp_myisam1 VALUES (1);
1487 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1488 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1489 [END] INSERT INTO tmp_myisam1 VALUES (1);
1490 include/assert.inc [No warning or error should be generated.]
1491 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1492 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1493 ROLLBACK;
1494 Warnings:
1495 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1496 SET GTID_NEXT = 'AUTOMATIC';
1497 include/assert.inc [Both counters should be 0]
1498 DROP TEMPORARY TABLE tmp_myisam1;
1499 ---- InnoDB and temp MyISAM in one autocommit statement, binlog_format=mix ----
1500 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
1501 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
1502 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
1503 # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=AUTOMATIC
1504 SET GTID_NEXT = 'AUTOMATIC';
1505 [START] INSERT INTO innodb VALUES (1);
1506 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1507 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1508 [END] INSERT INTO innodb VALUES (1);
1509 include/assert.inc [No warning or error should be generated.]
1510 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1511 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1512 ROLLBACK;
1513 SET GTID_NEXT = 'AUTOMATIC';
1514 include/assert.inc [Both counters should be 0]
1515 DROP TRIGGER trig;
1516 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
1517 SET BINLOG_FORMAT = 'ROW';
1518 Warnings:
1519 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
1520 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
1521 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
1522 ---- InnoDB followed by temp MyISAM in one trx, binlog_format='row' ----
1523 # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=AUTOMATIC
1524 SET GTID_NEXT = 'AUTOMATIC';
1525 BEGIN; INSERT INTO innodb VALUES (1);
1526 [START] INSERT INTO tmp_myisam1 VALUES (1);
1527 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1528 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1529 [END] INSERT INTO tmp_myisam1 VALUES (1);
1530 include/assert.inc [No warning or error should be generated.]
1531 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1532 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1533 ROLLBACK;
1534 Warnings:
1535 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1536 SET GTID_NEXT = 'AUTOMATIC';
1537 include/assert.inc [Both counters should be 0]
1538 ---- InnoDB and temp MyISAM in one statement, binlog_format='row' ----
1539 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
1540 # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=AUTOMATIC
1541 SET GTID_NEXT = 'AUTOMATIC';
1542 [START] INSERT INTO innodb VALUES (1);
1543 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1544 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1545 [END] INSERT INTO innodb VALUES (1);
1546 include/assert.inc [No warning or error should be generated.]
1547 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1548 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1549 ROLLBACK;
1550 SET GTID_NEXT = 'AUTOMATIC';
1551 include/assert.inc [Both counters should be 0]
1552 DROP TRIGGER trig;
1553 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
1554 SET BINLOG_FORMAT = #;
1555 Warnings:
1556 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
1557 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
1558 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
1559 SET SQL_LOG_BIN = 0;
1560 ---- InnoDB and MyISAM in one statement, SQL_LOG_BIN=0 ----
1561 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
1562 # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=AUTOMATIC
1563 SET GTID_NEXT = 'AUTOMATIC';
1564 [START] INSERT INTO innodb VALUES (1);
1565 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1566 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1567 [END] INSERT INTO innodb VALUES (1);
1568 include/assert.inc [No warning or error should be generated.]
1569 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1570 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1571 ROLLBACK;
1572 SET GTID_NEXT = 'AUTOMATIC';
1573 include/assert.inc [Both counters should be 0]
1574 DROP TRIGGER trig;
1575 ---- InnoDB followed by MyISAM, in one trx, SQL_LOG_BIN=0 ----
1576 # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=AUTOMATIC
1577 SET GTID_NEXT = 'AUTOMATIC';
1578 BEGIN; INSERT INTO innodb VALUES (1);
1579 [START] INSERT INTO myisam1 VALUES (1);
1580 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1581 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1582 [END] INSERT INTO myisam1 VALUES (1);
1583 include/assert.inc [No warning or error should be generated.]
1584 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1585 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1586 ROLLBACK;
1587 Warnings:
1588 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1589 SET GTID_NEXT = 'AUTOMATIC';
1590 include/assert.inc [Both counters should be 0]
1591 ---- InnoDB and MyISAM in one statement inside trx, SQL_LOG_BIN=0 ----
1592 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
1593 # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=AUTOMATIC
1594 SET GTID_NEXT = 'AUTOMATIC';
1595 BEGIN;
1596 [START] INSERT INTO innodb VALUES (1);
1597 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1598 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1599 [END] INSERT INTO innodb VALUES (1);
1600 include/assert.inc [No warning or error should be generated.]
1601 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1602 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1603 ROLLBACK;
1604 Warnings:
1605 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1606 SET GTID_NEXT = 'AUTOMATIC';
1607 include/assert.inc [Both counters should be 0]
1608 DROP TRIGGER trig;
1609 SET SQL_LOG_BIN = 1;
1610 DROP TABLE myisam1, myisam2, tmp_myisam1, tmp_myisam2, innodb;
1611 ######## ENFORCE_GTID_CONSISTENCY=ERROR GTID_MODE=ON GTID_NEXT=GTID ########
1612 CREATE TABLE myisam1 (a INT) ENGINE = MyISAM;
1613 CREATE TABLE myisam2 (a INT) ENGINE = MyISAM;
1614 CREATE TABLE innodb (a INT) ENGINE = InnoDB;
1615 ---- MyISAM and MyISAM in one statement ----
1616 CREATE TRIGGER trig BEFORE INSERT ON myisam1 FOR EACH ROW INSERT INTO myisam2 VALUES (1);
1617 # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=GTID
1618 SET GTID_NEXT = 'GTID';
1619 [START] INSERT INTO myisam2 VALUES (1);
1620 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1621 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1622 [END] INSERT INTO myisam2 VALUES (1);
1623 include/assert.inc [No warning or error should be generated.]
1624 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1625 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1626 ROLLBACK;
1627 SET GTID_NEXT = 'AUTOMATIC';
1628 include/assert.inc [Both counters should be 0]
1629 DROP TRIGGER trig;
1630 SET SESSION BINLOG_FORMAT = MIXED;
1631 Warnings:
1632 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
1633 ---- InnoDB followed by temp MyISAM in one trx, binlog_format=mix ----
1634 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
1635 # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=GTID
1636 SET GTID_NEXT = 'GTID';
1637 BEGIN; INSERT INTO innodb VALUES (1);
1638 [START] INSERT INTO tmp_myisam1 VALUES (1);
1639 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1640 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1641 [END] INSERT INTO tmp_myisam1 VALUES (1);
1642 include/assert.inc [No warning or error should be generated.]
1643 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1644 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1645 ROLLBACK;
1646 Warnings:
1647 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1648 SET GTID_NEXT = 'AUTOMATIC';
1649 include/assert.inc [Both counters should be 0]
1650 DROP TEMPORARY TABLE tmp_myisam1;
1651 ---- InnoDB and temp MyISAM in one autocommit statement, binlog_format=mix ----
1652 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
1653 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
1654 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
1655 # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=GTID
1656 SET GTID_NEXT = 'GTID';
1657 [START] INSERT INTO innodb VALUES (1);
1658 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1659 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1660 [END] INSERT INTO innodb VALUES (1);
1661 include/assert.inc [No warning or error should be generated.]
1662 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1663 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1664 ROLLBACK;
1665 SET GTID_NEXT = 'AUTOMATIC';
1666 include/assert.inc [Both counters should be 0]
1667 DROP TRIGGER trig;
1668 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
1669 SET BINLOG_FORMAT = 'ROW';
1670 Warnings:
1671 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
1672 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
1673 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
1674 ---- InnoDB followed by temp MyISAM in one trx, binlog_format='row' ----
1675 # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=GTID
1676 SET GTID_NEXT = 'GTID';
1677 BEGIN; INSERT INTO innodb VALUES (1);
1678 [START] INSERT INTO tmp_myisam1 VALUES (1);
1679 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1680 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1681 [END] INSERT INTO tmp_myisam1 VALUES (1);
1682 include/assert.inc [No warning or error should be generated.]
1683 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1684 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1685 ROLLBACK;
1686 Warnings:
1687 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1688 SET GTID_NEXT = 'AUTOMATIC';
1689 include/assert.inc [Both counters should be 0]
1690 ---- InnoDB and temp MyISAM in one statement, binlog_format='row' ----
1691 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
1692 # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=GTID
1693 SET GTID_NEXT = 'GTID';
1694 [START] INSERT INTO innodb VALUES (1);
1695 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1696 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1697 [END] INSERT INTO innodb VALUES (1);
1698 include/assert.inc [No warning or error should be generated.]
1699 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1700 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1701 ROLLBACK;
1702 SET GTID_NEXT = 'AUTOMATIC';
1703 include/assert.inc [Both counters should be 0]
1704 DROP TRIGGER trig;
1705 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
1706 SET BINLOG_FORMAT = #;
1707 Warnings:
1708 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
1709 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
1710 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
1711 SET SQL_LOG_BIN = 0;
1712 ---- InnoDB and MyISAM in one statement, SQL_LOG_BIN=0 ----
1713 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
1714 # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=GTID
1715 SET GTID_NEXT = 'GTID';
1716 [START] INSERT INTO innodb VALUES (1);
1717 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1718 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1719 [END] INSERT INTO innodb VALUES (1);
1720 include/assert.inc [No warning or error should be generated.]
1721 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1722 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1723 ROLLBACK;
1724 SET GTID_NEXT = 'AUTOMATIC';
1725 include/assert.inc [Both counters should be 0]
1726 DROP TRIGGER trig;
1727 ---- InnoDB followed by MyISAM, in one trx, SQL_LOG_BIN=0 ----
1728 # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=GTID
1729 SET GTID_NEXT = 'GTID';
1730 BEGIN; INSERT INTO innodb VALUES (1);
1731 [START] INSERT INTO myisam1 VALUES (1);
1732 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1733 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1734 [END] INSERT INTO myisam1 VALUES (1);
1735 include/assert.inc [No warning or error should be generated.]
1736 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1737 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1738 ROLLBACK;
1739 Warnings:
1740 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1741 SET GTID_NEXT = 'AUTOMATIC';
1742 include/assert.inc [Both counters should be 0]
1743 ---- InnoDB and MyISAM in one statement inside trx, SQL_LOG_BIN=0 ----
1744 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
1745 # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=GTID
1746 SET GTID_NEXT = 'GTID';
1747 BEGIN;
1748 [START] INSERT INTO innodb VALUES (1);
1749 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1750 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1751 [END] INSERT INTO innodb VALUES (1);
1752 include/assert.inc [No warning or error should be generated.]
1753 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1754 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1755 ROLLBACK;
1756 Warnings:
1757 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1758 SET GTID_NEXT = 'AUTOMATIC';
1759 include/assert.inc [Both counters should be 0]
1760 DROP TRIGGER trig;
1761 SET SQL_LOG_BIN = 1;
1762 DROP TABLE myisam1, myisam2, tmp_myisam1, tmp_myisam2, innodb;
1763 SET GLOBAL GTID_MODE = 2;
1764 ######## ENFORCE_GTID_CONSISTENCY=ERROR GTID_MODE=ON_PERMISSIVE GTID_NEXT=AUTOMATIC ########
1765 CREATE TABLE myisam1 (a INT) ENGINE = MyISAM;
1766 CREATE TABLE myisam2 (a INT) ENGINE = MyISAM;
1767 CREATE TABLE innodb (a INT) ENGINE = InnoDB;
1768 ---- MyISAM followed by MyISAM, in one 'trx' ----
1769 # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=AUTOMATIC
1770 SET GTID_NEXT = 'AUTOMATIC';
1771 BEGIN; INSERT INTO myisam1 VALUES (1);
1772 [START] INSERT INTO myisam2 VALUES (1);
1773 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1774 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1775 [END] INSERT INTO myisam2 VALUES (1);
1776 include/assert.inc [No warning or error should be generated.]
1777 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1778 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1779 ROLLBACK;
1780 Warnings:
1781 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1782 SET GTID_NEXT = 'AUTOMATIC';
1783 include/assert.inc [Both counters should be 0]
1784 ---- MyISAM and MyISAM in one statement ----
1785 CREATE TRIGGER trig BEFORE INSERT ON myisam1 FOR EACH ROW INSERT INTO myisam2 VALUES (1);
1786 # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=AUTOMATIC
1787 SET GTID_NEXT = 'AUTOMATIC';
1788 [START] INSERT INTO myisam2 VALUES (1);
1789 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1790 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1791 [END] INSERT INTO myisam2 VALUES (1);
1792 include/assert.inc [No warning or error should be generated.]
1793 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1794 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1795 ROLLBACK;
1796 SET GTID_NEXT = 'AUTOMATIC';
1797 include/assert.inc [Both counters should be 0]
1798 DROP TRIGGER trig;
1799 ---- MyISAM followed by InnoDB, in one 'trx' ----
1800 # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=AUTOMATIC
1801 SET GTID_NEXT = 'AUTOMATIC';
1802 BEGIN; INSERT INTO myisam1 VALUES (1);
1803 [START] INSERT INTO innodb VALUES (1);
1804 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1805 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1806 [END] INSERT INTO innodb VALUES (1);
1807 include/assert.inc [No warning or error should be generated.]
1808 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1809 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1810 ROLLBACK;
1811 Warnings:
1812 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1813 SET GTID_NEXT = 'AUTOMATIC';
1814 include/assert.inc [Both counters should be 0]
1815 SET SESSION BINLOG_FORMAT = MIXED;
1816 Warnings:
1817 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
1818 ---- InnoDB followed by temp MyISAM in one trx, binlog_format=mix ----
1819 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
1820 # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=AUTOMATIC
1821 SET GTID_NEXT = 'AUTOMATIC';
1822 BEGIN; INSERT INTO innodb VALUES (1);
1823 [START] INSERT INTO tmp_myisam1 VALUES (1);
1824 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1825 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1826 [END] INSERT INTO tmp_myisam1 VALUES (1);
1827 include/assert.inc [No warning or error should be generated.]
1828 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1829 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1830 ROLLBACK;
1831 Warnings:
1832 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1833 SET GTID_NEXT = 'AUTOMATIC';
1834 include/assert.inc [Both counters should be 0]
1835 DROP TEMPORARY TABLE tmp_myisam1;
1836 ---- InnoDB and temp MyISAM in one autocommit statement, binlog_format=mix ----
1837 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
1838 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
1839 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
1840 # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=AUTOMATIC
1841 SET GTID_NEXT = 'AUTOMATIC';
1842 [START] INSERT INTO innodb VALUES (1);
1843 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1844 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1845 [END] INSERT INTO innodb VALUES (1);
1846 include/assert.inc [No warning or error should be generated.]
1847 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1848 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1849 ROLLBACK;
1850 SET GTID_NEXT = 'AUTOMATIC';
1851 include/assert.inc [Both counters should be 0]
1852 DROP TRIGGER trig;
1853 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
1854 SET BINLOG_FORMAT = 'ROW';
1855 Warnings:
1856 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
1857 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
1858 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
1859 ---- InnoDB followed by temp MyISAM in one trx, binlog_format='row' ----
1860 # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=AUTOMATIC
1861 SET GTID_NEXT = 'AUTOMATIC';
1862 BEGIN; INSERT INTO innodb VALUES (1);
1863 [START] INSERT INTO tmp_myisam1 VALUES (1);
1864 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1865 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1866 [END] INSERT INTO tmp_myisam1 VALUES (1);
1867 include/assert.inc [No warning or error should be generated.]
1868 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1869 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1870 ROLLBACK;
1871 Warnings:
1872 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1873 SET GTID_NEXT = 'AUTOMATIC';
1874 include/assert.inc [Both counters should be 0]
1875 ---- InnoDB and temp MyISAM in one statement, binlog_format='row' ----
1876 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
1877 # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=AUTOMATIC
1878 SET GTID_NEXT = 'AUTOMATIC';
1879 [START] INSERT INTO innodb VALUES (1);
1880 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1881 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1882 [END] INSERT INTO innodb VALUES (1);
1883 include/assert.inc [No warning or error should be generated.]
1884 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1885 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1886 ROLLBACK;
1887 SET GTID_NEXT = 'AUTOMATIC';
1888 include/assert.inc [Both counters should be 0]
1889 DROP TRIGGER trig;
1890 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
1891 SET BINLOG_FORMAT = #;
1892 Warnings:
1893 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
1894 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
1895 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
1896 SET SQL_LOG_BIN = 0;
1897 ---- InnoDB and MyISAM in one statement, SQL_LOG_BIN=0 ----
1898 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
1899 # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=AUTOMATIC
1900 SET GTID_NEXT = 'AUTOMATIC';
1901 [START] INSERT INTO innodb VALUES (1);
1902 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1903 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1904 [END] INSERT INTO innodb VALUES (1);
1905 include/assert.inc [No warning or error should be generated.]
1906 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1907 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1908 ROLLBACK;
1909 SET GTID_NEXT = 'AUTOMATIC';
1910 include/assert.inc [Both counters should be 0]
1911 DROP TRIGGER trig;
1912 ---- InnoDB followed by MyISAM, in one trx, SQL_LOG_BIN=0 ----
1913 # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=AUTOMATIC
1914 SET GTID_NEXT = 'AUTOMATIC';
1915 BEGIN; INSERT INTO innodb VALUES (1);
1916 [START] INSERT INTO myisam1 VALUES (1);
1917 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1918 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1919 [END] INSERT INTO myisam1 VALUES (1);
1920 include/assert.inc [No warning or error should be generated.]
1921 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1922 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1923 ROLLBACK;
1924 Warnings:
1925 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1926 SET GTID_NEXT = 'AUTOMATIC';
1927 include/assert.inc [Both counters should be 0]
1928 ---- InnoDB and MyISAM in one statement inside trx, SQL_LOG_BIN=0 ----
1929 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
1930 # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=AUTOMATIC
1931 SET GTID_NEXT = 'AUTOMATIC';
1932 BEGIN;
1933 [START] INSERT INTO innodb VALUES (1);
1934 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1935 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1936 [END] INSERT INTO innodb VALUES (1);
1937 include/assert.inc [No warning or error should be generated.]
1938 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1939 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1940 ROLLBACK;
1941 Warnings:
1942 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1943 SET GTID_NEXT = 'AUTOMATIC';
1944 include/assert.inc [Both counters should be 0]
1945 DROP TRIGGER trig;
1946 SET SQL_LOG_BIN = 1;
1947 DROP TABLE myisam1, myisam2, tmp_myisam1, tmp_myisam2, innodb;
1948 ######## ENFORCE_GTID_CONSISTENCY=ERROR GTID_MODE=ON_PERMISSIVE GTID_NEXT=ANONYMOUS ########
1949 CREATE TABLE myisam1 (a INT) ENGINE = MyISAM;
1950 CREATE TABLE myisam2 (a INT) ENGINE = MyISAM;
1951 CREATE TABLE innodb (a INT) ENGINE = InnoDB;
1952 ---- MyISAM followed by MyISAM, in one 'trx' ----
1953 # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=ANONYMOUS
1954 SET GTID_NEXT = 'ANONYMOUS';
1955 BEGIN; INSERT INTO myisam1 VALUES (1);
1956 [START] INSERT INTO myisam2 VALUES (1);
1957 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1958 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1959 [END] INSERT INTO myisam2 VALUES (1);
1960 include/assert.inc [No warning or error should be generated.]
1961 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1962 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1963 ROLLBACK;
1964 Warnings:
1965 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1966 SET GTID_NEXT = 'AUTOMATIC';
1967 include/assert.inc [Both counters should be 0]
1968 ---- MyISAM and MyISAM in one statement ----
1969 CREATE TRIGGER trig BEFORE INSERT ON myisam1 FOR EACH ROW INSERT INTO myisam2 VALUES (1);
1970 # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=ANONYMOUS
1971 SET GTID_NEXT = 'ANONYMOUS';
1972 [START] INSERT INTO myisam2 VALUES (1);
1973 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1974 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1975 [END] INSERT INTO myisam2 VALUES (1);
1976 include/assert.inc [No warning or error should be generated.]
1977 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1978 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1979 ROLLBACK;
1980 SET GTID_NEXT = 'AUTOMATIC';
1981 include/assert.inc [Both counters should be 0]
1982 DROP TRIGGER trig;
1983 ---- MyISAM followed by InnoDB, in one 'trx' ----
1984 # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=ANONYMOUS
1985 SET GTID_NEXT = 'ANONYMOUS';
1986 BEGIN; INSERT INTO myisam1 VALUES (1);
1987 [START] INSERT INTO innodb VALUES (1);
1988 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1989 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1990 [END] INSERT INTO innodb VALUES (1);
1991 include/assert.inc [No warning or error should be generated.]
1992 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1993 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
1994 ROLLBACK;
1995 Warnings:
1996 Warning 1196 Some non-transactional changed tables couldn't be rolled back
1997 SET GTID_NEXT = 'AUTOMATIC';
1998 include/assert.inc [Both counters should be 0]
1999 SET SESSION BINLOG_FORMAT = MIXED;
2000 Warnings:
2001 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
2002 ---- InnoDB followed by temp MyISAM in one trx, binlog_format=mix ----
2003 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
2004 # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=ANONYMOUS
2005 SET GTID_NEXT = 'ANONYMOUS';
2006 BEGIN; INSERT INTO innodb VALUES (1);
2007 [START] INSERT INTO tmp_myisam1 VALUES (1);
2008 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2009 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2010 [END] INSERT INTO tmp_myisam1 VALUES (1);
2011 include/assert.inc [No warning or error should be generated.]
2012 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2013 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2014 ROLLBACK;
2015 Warnings:
2016 Warning 1196 Some non-transactional changed tables couldn't be rolled back
2017 SET GTID_NEXT = 'AUTOMATIC';
2018 include/assert.inc [Both counters should be 0]
2019 DROP TEMPORARY TABLE tmp_myisam1;
2020 ---- InnoDB and temp MyISAM in one autocommit statement, binlog_format=mix ----
2021 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
2022 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
2023 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
2024 # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=ANONYMOUS
2025 SET GTID_NEXT = 'ANONYMOUS';
2026 [START] INSERT INTO innodb VALUES (1);
2027 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2028 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2029 [END] INSERT INTO innodb VALUES (1);
2030 include/assert.inc [No warning or error should be generated.]
2031 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2032 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2033 ROLLBACK;
2034 SET GTID_NEXT = 'AUTOMATIC';
2035 include/assert.inc [Both counters should be 0]
2036 DROP TRIGGER trig;
2037 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
2038 SET BINLOG_FORMAT = 'ROW';
2039 Warnings:
2040 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
2041 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
2042 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
2043 ---- InnoDB followed by temp MyISAM in one trx, binlog_format='row' ----
2044 # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=ANONYMOUS
2045 SET GTID_NEXT = 'ANONYMOUS';
2046 BEGIN; INSERT INTO innodb VALUES (1);
2047 [START] INSERT INTO tmp_myisam1 VALUES (1);
2048 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2049 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2050 [END] INSERT INTO tmp_myisam1 VALUES (1);
2051 include/assert.inc [No warning or error should be generated.]
2052 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2053 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2054 ROLLBACK;
2055 Warnings:
2056 Warning 1196 Some non-transactional changed tables couldn't be rolled back
2057 SET GTID_NEXT = 'AUTOMATIC';
2058 include/assert.inc [Both counters should be 0]
2059 ---- InnoDB and temp MyISAM in one statement, binlog_format='row' ----
2060 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
2061 # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=ANONYMOUS
2062 SET GTID_NEXT = 'ANONYMOUS';
2063 [START] INSERT INTO innodb VALUES (1);
2064 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2065 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2066 [END] INSERT INTO innodb VALUES (1);
2067 include/assert.inc [No warning or error should be generated.]
2068 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2069 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2070 ROLLBACK;
2071 SET GTID_NEXT = 'AUTOMATIC';
2072 include/assert.inc [Both counters should be 0]
2073 DROP TRIGGER trig;
2074 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
2075 SET BINLOG_FORMAT = #;
2076 Warnings:
2077 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
2078 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
2079 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
2080 SET SQL_LOG_BIN = 0;
2081 ---- InnoDB and MyISAM in one statement, SQL_LOG_BIN=0 ----
2082 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
2083 # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=ANONYMOUS
2084 SET GTID_NEXT = 'ANONYMOUS';
2085 [START] INSERT INTO innodb VALUES (1);
2086 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2087 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2088 [END] INSERT INTO innodb VALUES (1);
2089 include/assert.inc [No warning or error should be generated.]
2090 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2091 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2092 ROLLBACK;
2093 SET GTID_NEXT = 'AUTOMATIC';
2094 include/assert.inc [Both counters should be 0]
2095 DROP TRIGGER trig;
2096 ---- InnoDB followed by MyISAM, in one trx, SQL_LOG_BIN=0 ----
2097 # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=ANONYMOUS
2098 SET GTID_NEXT = 'ANONYMOUS';
2099 BEGIN; INSERT INTO innodb VALUES (1);
2100 [START] INSERT INTO myisam1 VALUES (1);
2101 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2102 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2103 [END] INSERT INTO myisam1 VALUES (1);
2104 include/assert.inc [No warning or error should be generated.]
2105 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2106 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2107 ROLLBACK;
2108 Warnings:
2109 Warning 1196 Some non-transactional changed tables couldn't be rolled back
2110 SET GTID_NEXT = 'AUTOMATIC';
2111 include/assert.inc [Both counters should be 0]
2112 ---- InnoDB and MyISAM in one statement inside trx, SQL_LOG_BIN=0 ----
2113 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
2114 # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=ANONYMOUS
2115 SET GTID_NEXT = 'ANONYMOUS';
2116 BEGIN;
2117 [START] INSERT INTO innodb VALUES (1);
2118 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2119 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2120 [END] INSERT INTO innodb VALUES (1);
2121 include/assert.inc [No warning or error should be generated.]
2122 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2123 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2124 ROLLBACK;
2125 Warnings:
2126 Warning 1196 Some non-transactional changed tables couldn't be rolled back
2127 SET GTID_NEXT = 'AUTOMATIC';
2128 include/assert.inc [Both counters should be 0]
2129 DROP TRIGGER trig;
2130 SET SQL_LOG_BIN = 1;
2131 DROP TABLE myisam1, myisam2, tmp_myisam1, tmp_myisam2, innodb;
2132 ######## ENFORCE_GTID_CONSISTENCY=ERROR GTID_MODE=ON_PERMISSIVE GTID_NEXT=GTID ########
2133 CREATE TABLE myisam1 (a INT) ENGINE = MyISAM;
2134 CREATE TABLE myisam2 (a INT) ENGINE = MyISAM;
2135 CREATE TABLE innodb (a INT) ENGINE = InnoDB;
2136 ---- MyISAM and MyISAM in one statement ----
2137 CREATE TRIGGER trig BEFORE INSERT ON myisam1 FOR EACH ROW INSERT INTO myisam2 VALUES (1);
2138 # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=GTID
2139 SET GTID_NEXT = 'GTID';
2140 [START] INSERT INTO myisam2 VALUES (1);
2141 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2142 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2143 [END] INSERT INTO myisam2 VALUES (1);
2144 include/assert.inc [No warning or error should be generated.]
2145 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2146 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2147 ROLLBACK;
2148 SET GTID_NEXT = 'AUTOMATIC';
2149 include/assert.inc [Both counters should be 0]
2150 DROP TRIGGER trig;
2151 SET SESSION BINLOG_FORMAT = MIXED;
2152 Warnings:
2153 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
2154 ---- InnoDB followed by temp MyISAM in one trx, binlog_format=mix ----
2155 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
2156 # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=GTID
2157 SET GTID_NEXT = 'GTID';
2158 BEGIN; INSERT INTO innodb VALUES (1);
2159 [START] INSERT INTO tmp_myisam1 VALUES (1);
2160 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2161 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2162 [END] INSERT INTO tmp_myisam1 VALUES (1);
2163 include/assert.inc [No warning or error should be generated.]
2164 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2165 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2166 ROLLBACK;
2167 Warnings:
2168 Warning 1196 Some non-transactional changed tables couldn't be rolled back
2169 SET GTID_NEXT = 'AUTOMATIC';
2170 include/assert.inc [Both counters should be 0]
2171 DROP TEMPORARY TABLE tmp_myisam1;
2172 ---- InnoDB and temp MyISAM in one autocommit statement, binlog_format=mix ----
2173 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
2174 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
2175 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
2176 # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=GTID
2177 SET GTID_NEXT = 'GTID';
2178 [START] INSERT INTO innodb VALUES (1);
2179 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2180 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2181 [END] INSERT INTO innodb VALUES (1);
2182 include/assert.inc [No warning or error should be generated.]
2183 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2184 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2185 ROLLBACK;
2186 SET GTID_NEXT = 'AUTOMATIC';
2187 include/assert.inc [Both counters should be 0]
2188 DROP TRIGGER trig;
2189 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
2190 SET BINLOG_FORMAT = 'ROW';
2191 Warnings:
2192 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
2193 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
2194 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
2195 ---- InnoDB followed by temp MyISAM in one trx, binlog_format='row' ----
2196 # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=GTID
2197 SET GTID_NEXT = 'GTID';
2198 BEGIN; INSERT INTO innodb VALUES (1);
2199 [START] INSERT INTO tmp_myisam1 VALUES (1);
2200 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2201 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2202 [END] INSERT INTO tmp_myisam1 VALUES (1);
2203 include/assert.inc [No warning or error should be generated.]
2204 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2205 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2206 ROLLBACK;
2207 Warnings:
2208 Warning 1196 Some non-transactional changed tables couldn't be rolled back
2209 SET GTID_NEXT = 'AUTOMATIC';
2210 include/assert.inc [Both counters should be 0]
2211 ---- InnoDB and temp MyISAM in one statement, binlog_format='row' ----
2212 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
2213 # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=GTID
2214 SET GTID_NEXT = 'GTID';
2215 [START] INSERT INTO innodb VALUES (1);
2216 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2217 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2218 [END] INSERT INTO innodb VALUES (1);
2219 include/assert.inc [No warning or error should be generated.]
2220 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2221 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2222 ROLLBACK;
2223 SET GTID_NEXT = 'AUTOMATIC';
2224 include/assert.inc [Both counters should be 0]
2225 DROP TRIGGER trig;
2226 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
2227 SET BINLOG_FORMAT = #;
2228 Warnings:
2229 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
2230 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
2231 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
2232 SET SQL_LOG_BIN = 0;
2233 ---- InnoDB and MyISAM in one statement, SQL_LOG_BIN=0 ----
2234 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
2235 # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=GTID
2236 SET GTID_NEXT = 'GTID';
2237 [START] INSERT INTO innodb VALUES (1);
2238 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2239 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2240 [END] INSERT INTO innodb VALUES (1);
2241 include/assert.inc [No warning or error should be generated.]
2242 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2243 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2244 ROLLBACK;
2245 SET GTID_NEXT = 'AUTOMATIC';
2246 include/assert.inc [Both counters should be 0]
2247 DROP TRIGGER trig;
2248 ---- InnoDB followed by MyISAM, in one trx, SQL_LOG_BIN=0 ----
2249 # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=GTID
2250 SET GTID_NEXT = 'GTID';
2251 BEGIN; INSERT INTO innodb VALUES (1);
2252 [START] INSERT INTO myisam1 VALUES (1);
2253 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2254 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2255 [END] INSERT INTO myisam1 VALUES (1);
2256 include/assert.inc [No warning or error should be generated.]
2257 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2258 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2259 ROLLBACK;
2260 Warnings:
2261 Warning 1196 Some non-transactional changed tables couldn't be rolled back
2262 SET GTID_NEXT = 'AUTOMATIC';
2263 include/assert.inc [Both counters should be 0]
2264 ---- InnoDB and MyISAM in one statement inside trx, SQL_LOG_BIN=0 ----
2265 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
2266 # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=GTID
2267 SET GTID_NEXT = 'GTID';
2268 BEGIN;
2269 [START] INSERT INTO innodb VALUES (1);
2270 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2271 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2272 [END] INSERT INTO innodb VALUES (1);
2273 include/assert.inc [No warning or error should be generated.]
2274 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2275 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2276 ROLLBACK;
2277 Warnings:
2278 Warning 1196 Some non-transactional changed tables couldn't be rolled back
2279 SET GTID_NEXT = 'AUTOMATIC';
2280 include/assert.inc [Both counters should be 0]
2281 DROP TRIGGER trig;
2282 SET SQL_LOG_BIN = 1;
2283 DROP TABLE myisam1, myisam2, tmp_myisam1, tmp_myisam2, innodb;
2284 SET GLOBAL GTID_MODE = 1;
2285 ######## ENFORCE_GTID_CONSISTENCY=ERROR GTID_MODE=OFF_PERMISSIVE GTID_NEXT=AUTOMATIC ########
2286 CREATE TABLE myisam1 (a INT) ENGINE = MyISAM;
2287 CREATE TABLE myisam2 (a INT) ENGINE = MyISAM;
2288 CREATE TABLE innodb (a INT) ENGINE = InnoDB;
2289 ---- MyISAM followed by MyISAM, in one 'trx' ----
2290 # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=AUTOMATIC
2291 SET GTID_NEXT = 'AUTOMATIC';
2292 BEGIN; INSERT INTO myisam1 VALUES (1);
2293 [START] INSERT INTO myisam2 VALUES (1);
2294 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2295 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2296 [END] INSERT INTO myisam2 VALUES (1);
2297 include/assert.inc [No warning or error should be generated.]
2298 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2299 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2300 ROLLBACK;
2301 Warnings:
2302 Warning 1196 Some non-transactional changed tables couldn't be rolled back
2303 SET GTID_NEXT = 'AUTOMATIC';
2304 include/assert.inc [Both counters should be 0]
2305 ---- MyISAM and MyISAM in one statement ----
2306 CREATE TRIGGER trig BEFORE INSERT ON myisam1 FOR EACH ROW INSERT INTO myisam2 VALUES (1);
2307 # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=AUTOMATIC
2308 SET GTID_NEXT = 'AUTOMATIC';
2309 [START] INSERT INTO myisam2 VALUES (1);
2310 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2311 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2312 [END] INSERT INTO myisam2 VALUES (1);
2313 include/assert.inc [No warning or error should be generated.]
2314 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2315 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2316 ROLLBACK;
2317 SET GTID_NEXT = 'AUTOMATIC';
2318 include/assert.inc [Both counters should be 0]
2319 DROP TRIGGER trig;
2320 ---- MyISAM followed by InnoDB, in one 'trx' ----
2321 # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=AUTOMATIC
2322 SET GTID_NEXT = 'AUTOMATIC';
2323 BEGIN; INSERT INTO myisam1 VALUES (1);
2324 [START] INSERT INTO innodb VALUES (1);
2325 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2326 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2327 [END] INSERT INTO innodb VALUES (1);
2328 include/assert.inc [No warning or error should be generated.]
2329 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2330 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2331 ROLLBACK;
2332 Warnings:
2333 Warning 1196 Some non-transactional changed tables couldn't be rolled back
2334 SET GTID_NEXT = 'AUTOMATIC';
2335 include/assert.inc [Both counters should be 0]
2336 SET SESSION BINLOG_FORMAT = MIXED;
2337 Warnings:
2338 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
2339 ---- InnoDB followed by temp MyISAM in one trx, binlog_format=mix ----
2340 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
2341 # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=AUTOMATIC
2342 SET GTID_NEXT = 'AUTOMATIC';
2343 BEGIN; INSERT INTO innodb VALUES (1);
2344 [START] INSERT INTO tmp_myisam1 VALUES (1);
2345 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2346 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2347 [END] INSERT INTO tmp_myisam1 VALUES (1);
2348 include/assert.inc [No warning or error should be generated.]
2349 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2350 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2351 ROLLBACK;
2352 Warnings:
2353 Warning 1196 Some non-transactional changed tables couldn't be rolled back
2354 SET GTID_NEXT = 'AUTOMATIC';
2355 include/assert.inc [Both counters should be 0]
2356 DROP TEMPORARY TABLE tmp_myisam1;
2357 ---- InnoDB and temp MyISAM in one autocommit statement, binlog_format=mix ----
2358 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
2359 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
2360 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
2361 # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=AUTOMATIC
2362 SET GTID_NEXT = 'AUTOMATIC';
2363 [START] INSERT INTO innodb VALUES (1);
2364 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2365 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2366 [END] INSERT INTO innodb VALUES (1);
2367 include/assert.inc [No warning or error should be generated.]
2368 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2369 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2370 ROLLBACK;
2371 SET GTID_NEXT = 'AUTOMATIC';
2372 include/assert.inc [Both counters should be 0]
2373 DROP TRIGGER trig;
2374 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
2375 SET BINLOG_FORMAT = 'ROW';
2376 Warnings:
2377 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
2378 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
2379 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
2380 ---- InnoDB followed by temp MyISAM in one trx, binlog_format='row' ----
2381 # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=AUTOMATIC
2382 SET GTID_NEXT = 'AUTOMATIC';
2383 BEGIN; INSERT INTO innodb VALUES (1);
2384 [START] INSERT INTO tmp_myisam1 VALUES (1);
2385 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2386 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2387 [END] INSERT INTO tmp_myisam1 VALUES (1);
2388 include/assert.inc [No warning or error should be generated.]
2389 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2390 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2391 ROLLBACK;
2392 Warnings:
2393 Warning 1196 Some non-transactional changed tables couldn't be rolled back
2394 SET GTID_NEXT = 'AUTOMATIC';
2395 include/assert.inc [Both counters should be 0]
2396 ---- InnoDB and temp MyISAM in one statement, binlog_format='row' ----
2397 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
2398 # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=AUTOMATIC
2399 SET GTID_NEXT = 'AUTOMATIC';
2400 [START] INSERT INTO innodb VALUES (1);
2401 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2402 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2403 [END] INSERT INTO innodb VALUES (1);
2404 include/assert.inc [No warning or error should be generated.]
2405 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2406 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2407 ROLLBACK;
2408 SET GTID_NEXT = 'AUTOMATIC';
2409 include/assert.inc [Both counters should be 0]
2410 DROP TRIGGER trig;
2411 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
2412 SET BINLOG_FORMAT = #;
2413 Warnings:
2414 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
2415 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
2416 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
2417 SET SQL_LOG_BIN = 0;
2418 ---- InnoDB and MyISAM in one statement, SQL_LOG_BIN=0 ----
2419 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
2420 # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=AUTOMATIC
2421 SET GTID_NEXT = 'AUTOMATIC';
2422 [START] INSERT INTO innodb VALUES (1);
2423 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2424 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2425 [END] INSERT INTO innodb VALUES (1);
2426 include/assert.inc [No warning or error should be generated.]
2427 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2428 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2429 ROLLBACK;
2430 SET GTID_NEXT = 'AUTOMATIC';
2431 include/assert.inc [Both counters should be 0]
2432 DROP TRIGGER trig;
2433 ---- InnoDB followed by MyISAM, in one trx, SQL_LOG_BIN=0 ----
2434 # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=AUTOMATIC
2435 SET GTID_NEXT = 'AUTOMATIC';
2436 BEGIN; INSERT INTO innodb VALUES (1);
2437 [START] INSERT INTO myisam1 VALUES (1);
2438 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2439 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2440 [END] INSERT INTO myisam1 VALUES (1);
2441 include/assert.inc [No warning or error should be generated.]
2442 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2443 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2444 ROLLBACK;
2445 Warnings:
2446 Warning 1196 Some non-transactional changed tables couldn't be rolled back
2447 SET GTID_NEXT = 'AUTOMATIC';
2448 include/assert.inc [Both counters should be 0]
2449 ---- InnoDB and MyISAM in one statement inside trx, SQL_LOG_BIN=0 ----
2450 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
2451 # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=AUTOMATIC
2452 SET GTID_NEXT = 'AUTOMATIC';
2453 BEGIN;
2454 [START] INSERT INTO innodb VALUES (1);
2455 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2456 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2457 [END] INSERT INTO innodb VALUES (1);
2458 include/assert.inc [No warning or error should be generated.]
2459 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2460 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2461 ROLLBACK;
2462 Warnings:
2463 Warning 1196 Some non-transactional changed tables couldn't be rolled back
2464 SET GTID_NEXT = 'AUTOMATIC';
2465 include/assert.inc [Both counters should be 0]
2466 DROP TRIGGER trig;
2467 SET SQL_LOG_BIN = 1;
2468 DROP TABLE myisam1, myisam2, tmp_myisam1, tmp_myisam2, innodb;
2469 ######## ENFORCE_GTID_CONSISTENCY=ERROR GTID_MODE=OFF_PERMISSIVE GTID_NEXT=ANONYMOUS ########
2470 CREATE TABLE myisam1 (a INT) ENGINE = MyISAM;
2471 CREATE TABLE myisam2 (a INT) ENGINE = MyISAM;
2472 CREATE TABLE innodb (a INT) ENGINE = InnoDB;
2473 ---- MyISAM followed by MyISAM, in one 'trx' ----
2474 # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=ANONYMOUS
2475 SET GTID_NEXT = 'ANONYMOUS';
2476 BEGIN; INSERT INTO myisam1 VALUES (1);
2477 [START] INSERT INTO myisam2 VALUES (1);
2478 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2479 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2480 [END] INSERT INTO myisam2 VALUES (1);
2481 include/assert.inc [No warning or error should be generated.]
2482 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2483 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2484 ROLLBACK;
2485 Warnings:
2486 Warning 1196 Some non-transactional changed tables couldn't be rolled back
2487 SET GTID_NEXT = 'AUTOMATIC';
2488 include/assert.inc [Both counters should be 0]
2489 ---- MyISAM and MyISAM in one statement ----
2490 CREATE TRIGGER trig BEFORE INSERT ON myisam1 FOR EACH ROW INSERT INTO myisam2 VALUES (1);
2491 # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=ANONYMOUS
2492 SET GTID_NEXT = 'ANONYMOUS';
2493 [START] INSERT INTO myisam2 VALUES (1);
2494 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2495 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2496 [END] INSERT INTO myisam2 VALUES (1);
2497 include/assert.inc [No warning or error should be generated.]
2498 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2499 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2500 ROLLBACK;
2501 SET GTID_NEXT = 'AUTOMATIC';
2502 include/assert.inc [Both counters should be 0]
2503 DROP TRIGGER trig;
2504 ---- MyISAM followed by InnoDB, in one 'trx' ----
2505 # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=ANONYMOUS
2506 SET GTID_NEXT = 'ANONYMOUS';
2507 BEGIN; INSERT INTO myisam1 VALUES (1);
2508 [START] INSERT INTO innodb VALUES (1);
2509 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2510 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2511 [END] INSERT INTO innodb VALUES (1);
2512 include/assert.inc [No warning or error should be generated.]
2513 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2514 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2515 ROLLBACK;
2516 Warnings:
2517 Warning 1196 Some non-transactional changed tables couldn't be rolled back
2518 SET GTID_NEXT = 'AUTOMATIC';
2519 include/assert.inc [Both counters should be 0]
2520 SET SESSION BINLOG_FORMAT = MIXED;
2521 Warnings:
2522 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
2523 ---- InnoDB followed by temp MyISAM in one trx, binlog_format=mix ----
2524 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
2525 # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=ANONYMOUS
2526 SET GTID_NEXT = 'ANONYMOUS';
2527 BEGIN; INSERT INTO innodb VALUES (1);
2528 [START] INSERT INTO tmp_myisam1 VALUES (1);
2529 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2530 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2531 [END] INSERT INTO tmp_myisam1 VALUES (1);
2532 include/assert.inc [No warning or error should be generated.]
2533 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2534 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2535 ROLLBACK;
2536 Warnings:
2537 Warning 1196 Some non-transactional changed tables couldn't be rolled back
2538 SET GTID_NEXT = 'AUTOMATIC';
2539 include/assert.inc [Both counters should be 0]
2540 DROP TEMPORARY TABLE tmp_myisam1;
2541 ---- InnoDB and temp MyISAM in one autocommit statement, binlog_format=mix ----
2542 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
2543 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
2544 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
2545 # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=ANONYMOUS
2546 SET GTID_NEXT = 'ANONYMOUS';
2547 [START] INSERT INTO innodb VALUES (1);
2548 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2549 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2550 [END] INSERT INTO innodb VALUES (1);
2551 include/assert.inc [No warning or error should be generated.]
2552 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2553 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2554 ROLLBACK;
2555 SET GTID_NEXT = 'AUTOMATIC';
2556 include/assert.inc [Both counters should be 0]
2557 DROP TRIGGER trig;
2558 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
2559 SET BINLOG_FORMAT = 'ROW';
2560 Warnings:
2561 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
2562 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
2563 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
2564 ---- InnoDB followed by temp MyISAM in one trx, binlog_format='row' ----
2565 # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=ANONYMOUS
2566 SET GTID_NEXT = 'ANONYMOUS';
2567 BEGIN; INSERT INTO innodb VALUES (1);
2568 [START] INSERT INTO tmp_myisam1 VALUES (1);
2569 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2570 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2571 [END] INSERT INTO tmp_myisam1 VALUES (1);
2572 include/assert.inc [No warning or error should be generated.]
2573 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2574 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2575 ROLLBACK;
2576 Warnings:
2577 Warning 1196 Some non-transactional changed tables couldn't be rolled back
2578 SET GTID_NEXT = 'AUTOMATIC';
2579 include/assert.inc [Both counters should be 0]
2580 ---- InnoDB and temp MyISAM in one statement, binlog_format='row' ----
2581 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
2582 # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=ANONYMOUS
2583 SET GTID_NEXT = 'ANONYMOUS';
2584 [START] INSERT INTO innodb VALUES (1);
2585 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2586 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2587 [END] INSERT INTO innodb VALUES (1);
2588 include/assert.inc [No warning or error should be generated.]
2589 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2590 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2591 ROLLBACK;
2592 SET GTID_NEXT = 'AUTOMATIC';
2593 include/assert.inc [Both counters should be 0]
2594 DROP TRIGGER trig;
2595 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
2596 SET BINLOG_FORMAT = #;
2597 Warnings:
2598 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
2599 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
2600 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
2601 SET SQL_LOG_BIN = 0;
2602 ---- InnoDB and MyISAM in one statement, SQL_LOG_BIN=0 ----
2603 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
2604 # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=ANONYMOUS
2605 SET GTID_NEXT = 'ANONYMOUS';
2606 [START] INSERT INTO innodb VALUES (1);
2607 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2608 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2609 [END] INSERT INTO innodb VALUES (1);
2610 include/assert.inc [No warning or error should be generated.]
2611 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2612 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2613 ROLLBACK;
2614 SET GTID_NEXT = 'AUTOMATIC';
2615 include/assert.inc [Both counters should be 0]
2616 DROP TRIGGER trig;
2617 ---- InnoDB followed by MyISAM, in one trx, SQL_LOG_BIN=0 ----
2618 # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=ANONYMOUS
2619 SET GTID_NEXT = 'ANONYMOUS';
2620 BEGIN; INSERT INTO innodb VALUES (1);
2621 [START] INSERT INTO myisam1 VALUES (1);
2622 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2623 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2624 [END] INSERT INTO myisam1 VALUES (1);
2625 include/assert.inc [No warning or error should be generated.]
2626 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2627 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2628 ROLLBACK;
2629 Warnings:
2630 Warning 1196 Some non-transactional changed tables couldn't be rolled back
2631 SET GTID_NEXT = 'AUTOMATIC';
2632 include/assert.inc [Both counters should be 0]
2633 ---- InnoDB and MyISAM in one statement inside trx, SQL_LOG_BIN=0 ----
2634 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
2635 # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=ANONYMOUS
2636 SET GTID_NEXT = 'ANONYMOUS';
2637 BEGIN;
2638 [START] INSERT INTO innodb VALUES (1);
2639 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2640 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2641 [END] INSERT INTO innodb VALUES (1);
2642 include/assert.inc [No warning or error should be generated.]
2643 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2644 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2645 ROLLBACK;
2646 Warnings:
2647 Warning 1196 Some non-transactional changed tables couldn't be rolled back
2648 SET GTID_NEXT = 'AUTOMATIC';
2649 include/assert.inc [Both counters should be 0]
2650 DROP TRIGGER trig;
2651 SET SQL_LOG_BIN = 1;
2652 DROP TABLE myisam1, myisam2, tmp_myisam1, tmp_myisam2, innodb;
2653 ######## ENFORCE_GTID_CONSISTENCY=ERROR GTID_MODE=OFF_PERMISSIVE GTID_NEXT=GTID ########
2654 CREATE TABLE myisam1 (a INT) ENGINE = MyISAM;
2655 CREATE TABLE myisam2 (a INT) ENGINE = MyISAM;
2656 CREATE TABLE innodb (a INT) ENGINE = InnoDB;
2657 ---- MyISAM and MyISAM in one statement ----
2658 CREATE TRIGGER trig BEFORE INSERT ON myisam1 FOR EACH ROW INSERT INTO myisam2 VALUES (1);
2659 # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=GTID
2660 SET GTID_NEXT = 'GTID';
2661 [START] INSERT INTO myisam2 VALUES (1);
2662 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2663 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2664 [END] INSERT INTO myisam2 VALUES (1);
2665 include/assert.inc [No warning or error should be generated.]
2666 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2667 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2668 ROLLBACK;
2669 SET GTID_NEXT = 'AUTOMATIC';
2670 include/assert.inc [Both counters should be 0]
2671 DROP TRIGGER trig;
2672 SET SESSION BINLOG_FORMAT = MIXED;
2673 Warnings:
2674 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
2675 ---- InnoDB followed by temp MyISAM in one trx, binlog_format=mix ----
2676 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
2677 # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=GTID
2678 SET GTID_NEXT = 'GTID';
2679 BEGIN; INSERT INTO innodb VALUES (1);
2680 [START] INSERT INTO tmp_myisam1 VALUES (1);
2681 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2682 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2683 [END] INSERT INTO tmp_myisam1 VALUES (1);
2684 include/assert.inc [No warning or error should be generated.]
2685 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2686 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2687 ROLLBACK;
2688 Warnings:
2689 Warning 1196 Some non-transactional changed tables couldn't be rolled back
2690 SET GTID_NEXT = 'AUTOMATIC';
2691 include/assert.inc [Both counters should be 0]
2692 DROP TEMPORARY TABLE tmp_myisam1;
2693 ---- InnoDB and temp MyISAM in one autocommit statement, binlog_format=mix ----
2694 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
2695 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
2696 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
2697 # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=GTID
2698 SET GTID_NEXT = 'GTID';
2699 [START] INSERT INTO innodb VALUES (1);
2700 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2701 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2702 [END] INSERT INTO innodb VALUES (1);
2703 include/assert.inc [No warning or error should be generated.]
2704 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2705 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2706 ROLLBACK;
2707 SET GTID_NEXT = 'AUTOMATIC';
2708 include/assert.inc [Both counters should be 0]
2709 DROP TRIGGER trig;
2710 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
2711 SET BINLOG_FORMAT = 'ROW';
2712 Warnings:
2713 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
2714 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
2715 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
2716 ---- InnoDB followed by temp MyISAM in one trx, binlog_format='row' ----
2717 # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=GTID
2718 SET GTID_NEXT = 'GTID';
2719 BEGIN; INSERT INTO innodb VALUES (1);
2720 [START] INSERT INTO tmp_myisam1 VALUES (1);
2721 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2722 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2723 [END] INSERT INTO tmp_myisam1 VALUES (1);
2724 include/assert.inc [No warning or error should be generated.]
2725 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2726 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2727 ROLLBACK;
2728 Warnings:
2729 Warning 1196 Some non-transactional changed tables couldn't be rolled back
2730 SET GTID_NEXT = 'AUTOMATIC';
2731 include/assert.inc [Both counters should be 0]
2732 ---- InnoDB and temp MyISAM in one statement, binlog_format='row' ----
2733 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
2734 # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=GTID
2735 SET GTID_NEXT = 'GTID';
2736 [START] INSERT INTO innodb VALUES (1);
2737 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2738 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2739 [END] INSERT INTO innodb VALUES (1);
2740 include/assert.inc [No warning or error should be generated.]
2741 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2742 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2743 ROLLBACK;
2744 SET GTID_NEXT = 'AUTOMATIC';
2745 include/assert.inc [Both counters should be 0]
2746 DROP TRIGGER trig;
2747 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
2748 SET BINLOG_FORMAT = #;
2749 Warnings:
2750 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
2751 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
2752 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
2753 SET SQL_LOG_BIN = 0;
2754 ---- InnoDB and MyISAM in one statement, SQL_LOG_BIN=0 ----
2755 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
2756 # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=GTID
2757 SET GTID_NEXT = 'GTID';
2758 [START] INSERT INTO innodb VALUES (1);
2759 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2760 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2761 [END] INSERT INTO innodb VALUES (1);
2762 include/assert.inc [No warning or error should be generated.]
2763 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2764 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2765 ROLLBACK;
2766 SET GTID_NEXT = 'AUTOMATIC';
2767 include/assert.inc [Both counters should be 0]
2768 DROP TRIGGER trig;
2769 ---- InnoDB followed by MyISAM, in one trx, SQL_LOG_BIN=0 ----
2770 # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=GTID
2771 SET GTID_NEXT = 'GTID';
2772 BEGIN; INSERT INTO innodb VALUES (1);
2773 [START] INSERT INTO myisam1 VALUES (1);
2774 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2775 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2776 [END] INSERT INTO myisam1 VALUES (1);
2777 include/assert.inc [No warning or error should be generated.]
2778 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2779 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2780 ROLLBACK;
2781 Warnings:
2782 Warning 1196 Some non-transactional changed tables couldn't be rolled back
2783 SET GTID_NEXT = 'AUTOMATIC';
2784 include/assert.inc [Both counters should be 0]
2785 ---- InnoDB and MyISAM in one statement inside trx, SQL_LOG_BIN=0 ----
2786 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
2787 # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=GTID
2788 SET GTID_NEXT = 'GTID';
2789 BEGIN;
2790 [START] INSERT INTO innodb VALUES (1);
2791 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2792 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2793 [END] INSERT INTO innodb VALUES (1);
2794 include/assert.inc [No warning or error should be generated.]
2795 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2796 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2797 ROLLBACK;
2798 Warnings:
2799 Warning 1196 Some non-transactional changed tables couldn't be rolled back
2800 SET GTID_NEXT = 'AUTOMATIC';
2801 include/assert.inc [Both counters should be 0]
2802 DROP TRIGGER trig;
2803 SET SQL_LOG_BIN = 1;
2804 DROP TABLE myisam1, myisam2, tmp_myisam1, tmp_myisam2, innodb;
2805 SET GLOBAL GTID_MODE = 0;
2806 ######## ENFORCE_GTID_CONSISTENCY=ERROR GTID_MODE=OFF GTID_NEXT=AUTOMATIC ########
2807 CREATE TABLE myisam1 (a INT) ENGINE = MyISAM;
2808 CREATE TABLE myisam2 (a INT) ENGINE = MyISAM;
2809 CREATE TABLE innodb (a INT) ENGINE = InnoDB;
2810 ---- MyISAM followed by MyISAM, in one 'trx' ----
2811 # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=AUTOMATIC
2812 SET GTID_NEXT = 'AUTOMATIC';
2813 BEGIN; INSERT INTO myisam1 VALUES (1);
2814 [START] INSERT INTO myisam2 VALUES (1);
2815 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2816 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2817 [END] INSERT INTO myisam2 VALUES (1);
2818 include/assert.inc [No warning or error should be generated.]
2819 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2820 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2821 ROLLBACK;
2822 Warnings:
2823 Warning 1196 Some non-transactional changed tables couldn't be rolled back
2824 SET GTID_NEXT = 'AUTOMATIC';
2825 include/assert.inc [Both counters should be 0]
2826 ---- MyISAM and MyISAM in one statement ----
2827 CREATE TRIGGER trig BEFORE INSERT ON myisam1 FOR EACH ROW INSERT INTO myisam2 VALUES (1);
2828 # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=AUTOMATIC
2829 SET GTID_NEXT = 'AUTOMATIC';
2830 [START] INSERT INTO myisam2 VALUES (1);
2831 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2832 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2833 [END] INSERT INTO myisam2 VALUES (1);
2834 include/assert.inc [No warning or error should be generated.]
2835 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2836 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2837 ROLLBACK;
2838 SET GTID_NEXT = 'AUTOMATIC';
2839 include/assert.inc [Both counters should be 0]
2840 DROP TRIGGER trig;
2841 ---- MyISAM followed by InnoDB, in one 'trx' ----
2842 # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=AUTOMATIC
2843 SET GTID_NEXT = 'AUTOMATIC';
2844 BEGIN; INSERT INTO myisam1 VALUES (1);
2845 [START] INSERT INTO innodb VALUES (1);
2846 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2847 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2848 [END] INSERT INTO innodb VALUES (1);
2849 include/assert.inc [No warning or error should be generated.]
2850 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2851 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2852 ROLLBACK;
2853 Warnings:
2854 Warning 1196 Some non-transactional changed tables couldn't be rolled back
2855 SET GTID_NEXT = 'AUTOMATIC';
2856 include/assert.inc [Both counters should be 0]
2857 SET SESSION BINLOG_FORMAT = MIXED;
2858 Warnings:
2859 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
2860 ---- InnoDB followed by temp MyISAM in one trx, binlog_format=mix ----
2861 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
2862 # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=AUTOMATIC
2863 SET GTID_NEXT = 'AUTOMATIC';
2864 BEGIN; INSERT INTO innodb VALUES (1);
2865 [START] INSERT INTO tmp_myisam1 VALUES (1);
2866 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2867 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2868 [END] INSERT INTO tmp_myisam1 VALUES (1);
2869 include/assert.inc [No warning or error should be generated.]
2870 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2871 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2872 ROLLBACK;
2873 Warnings:
2874 Warning 1196 Some non-transactional changed tables couldn't be rolled back
2875 SET GTID_NEXT = 'AUTOMATIC';
2876 include/assert.inc [Both counters should be 0]
2877 DROP TEMPORARY TABLE tmp_myisam1;
2878 ---- InnoDB and temp MyISAM in one autocommit statement, binlog_format=mix ----
2879 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
2880 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
2881 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
2882 # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=AUTOMATIC
2883 SET GTID_NEXT = 'AUTOMATIC';
2884 [START] INSERT INTO innodb VALUES (1);
2885 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2886 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2887 [END] INSERT INTO innodb VALUES (1);
2888 include/assert.inc [No warning or error should be generated.]
2889 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2890 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2891 ROLLBACK;
2892 SET GTID_NEXT = 'AUTOMATIC';
2893 include/assert.inc [Both counters should be 0]
2894 DROP TRIGGER trig;
2895 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
2896 SET BINLOG_FORMAT = 'ROW';
2897 Warnings:
2898 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
2899 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
2900 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
2901 ---- InnoDB followed by temp MyISAM in one trx, binlog_format='row' ----
2902 # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=AUTOMATIC
2903 SET GTID_NEXT = 'AUTOMATIC';
2904 BEGIN; INSERT INTO innodb VALUES (1);
2905 [START] INSERT INTO tmp_myisam1 VALUES (1);
2906 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2907 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2908 [END] INSERT INTO tmp_myisam1 VALUES (1);
2909 include/assert.inc [No warning or error should be generated.]
2910 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2911 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2912 ROLLBACK;
2913 Warnings:
2914 Warning 1196 Some non-transactional changed tables couldn't be rolled back
2915 SET GTID_NEXT = 'AUTOMATIC';
2916 include/assert.inc [Both counters should be 0]
2917 ---- InnoDB and temp MyISAM in one statement, binlog_format='row' ----
2918 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
2919 # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=AUTOMATIC
2920 SET GTID_NEXT = 'AUTOMATIC';
2921 [START] INSERT INTO innodb VALUES (1);
2922 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2923 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2924 [END] INSERT INTO innodb VALUES (1);
2925 include/assert.inc [No warning or error should be generated.]
2926 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2927 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2928 ROLLBACK;
2929 SET GTID_NEXT = 'AUTOMATIC';
2930 include/assert.inc [Both counters should be 0]
2931 DROP TRIGGER trig;
2932 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
2933 SET BINLOG_FORMAT = #;
2934 Warnings:
2935 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
2936 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
2937 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
2938 SET SQL_LOG_BIN = 0;
2939 ---- InnoDB and MyISAM in one statement, SQL_LOG_BIN=0 ----
2940 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
2941 # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=AUTOMATIC
2942 SET GTID_NEXT = 'AUTOMATIC';
2943 [START] INSERT INTO innodb VALUES (1);
2944 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2945 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2946 [END] INSERT INTO innodb VALUES (1);
2947 include/assert.inc [No warning or error should be generated.]
2948 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2949 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2950 ROLLBACK;
2951 SET GTID_NEXT = 'AUTOMATIC';
2952 include/assert.inc [Both counters should be 0]
2953 DROP TRIGGER trig;
2954 ---- InnoDB followed by MyISAM, in one trx, SQL_LOG_BIN=0 ----
2955 # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=AUTOMATIC
2956 SET GTID_NEXT = 'AUTOMATIC';
2957 BEGIN; INSERT INTO innodb VALUES (1);
2958 [START] INSERT INTO myisam1 VALUES (1);
2959 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2960 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2961 [END] INSERT INTO myisam1 VALUES (1);
2962 include/assert.inc [No warning or error should be generated.]
2963 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2964 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2965 ROLLBACK;
2966 Warnings:
2967 Warning 1196 Some non-transactional changed tables couldn't be rolled back
2968 SET GTID_NEXT = 'AUTOMATIC';
2969 include/assert.inc [Both counters should be 0]
2970 ---- InnoDB and MyISAM in one statement inside trx, SQL_LOG_BIN=0 ----
2971 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
2972 # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=AUTOMATIC
2973 SET GTID_NEXT = 'AUTOMATIC';
2974 BEGIN;
2975 [START] INSERT INTO innodb VALUES (1);
2976 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2977 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2978 [END] INSERT INTO innodb VALUES (1);
2979 include/assert.inc [No warning or error should be generated.]
2980 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2981 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
2982 ROLLBACK;
2983 Warnings:
2984 Warning 1196 Some non-transactional changed tables couldn't be rolled back
2985 SET GTID_NEXT = 'AUTOMATIC';
2986 include/assert.inc [Both counters should be 0]
2987 DROP TRIGGER trig;
2988 SET SQL_LOG_BIN = 1;
2989 DROP TABLE myisam1, myisam2, tmp_myisam1, tmp_myisam2, innodb;
2990 ######## ENFORCE_GTID_CONSISTENCY=ERROR GTID_MODE=OFF GTID_NEXT=ANONYMOUS ########
2991 CREATE TABLE myisam1 (a INT) ENGINE = MyISAM;
2992 CREATE TABLE myisam2 (a INT) ENGINE = MyISAM;
2993 CREATE TABLE innodb (a INT) ENGINE = InnoDB;
2994 ---- MyISAM followed by MyISAM, in one 'trx' ----
2995 # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=ANONYMOUS
2996 SET GTID_NEXT = 'ANONYMOUS';
2997 BEGIN; INSERT INTO myisam1 VALUES (1);
2998 [START] INSERT INTO myisam2 VALUES (1);
2999 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3000 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3001 [END] INSERT INTO myisam2 VALUES (1);
3002 include/assert.inc [No warning or error should be generated.]
3003 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3004 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3005 ROLLBACK;
3006 Warnings:
3007 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3008 SET GTID_NEXT = 'AUTOMATIC';
3009 include/assert.inc [Both counters should be 0]
3010 ---- MyISAM and MyISAM in one statement ----
3011 CREATE TRIGGER trig BEFORE INSERT ON myisam1 FOR EACH ROW INSERT INTO myisam2 VALUES (1);
3012 # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=ANONYMOUS
3013 SET GTID_NEXT = 'ANONYMOUS';
3014 [START] INSERT INTO myisam2 VALUES (1);
3015 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3016 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3017 [END] INSERT INTO myisam2 VALUES (1);
3018 include/assert.inc [No warning or error should be generated.]
3019 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3020 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3021 ROLLBACK;
3022 SET GTID_NEXT = 'AUTOMATIC';
3023 include/assert.inc [Both counters should be 0]
3024 DROP TRIGGER trig;
3025 ---- MyISAM followed by InnoDB, in one 'trx' ----
3026 # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=ANONYMOUS
3027 SET GTID_NEXT = 'ANONYMOUS';
3028 BEGIN; INSERT INTO myisam1 VALUES (1);
3029 [START] INSERT INTO innodb VALUES (1);
3030 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3031 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3032 [END] INSERT INTO innodb VALUES (1);
3033 include/assert.inc [No warning or error should be generated.]
3034 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3035 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3036 ROLLBACK;
3037 Warnings:
3038 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3039 SET GTID_NEXT = 'AUTOMATIC';
3040 include/assert.inc [Both counters should be 0]
3041 SET SESSION BINLOG_FORMAT = MIXED;
3042 Warnings:
3043 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
3044 ---- InnoDB followed by temp MyISAM in one trx, binlog_format=mix ----
3045 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
3046 # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=ANONYMOUS
3047 SET GTID_NEXT = 'ANONYMOUS';
3048 BEGIN; INSERT INTO innodb VALUES (1);
3049 [START] INSERT INTO tmp_myisam1 VALUES (1);
3050 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3051 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3052 [END] INSERT INTO tmp_myisam1 VALUES (1);
3053 include/assert.inc [No warning or error should be generated.]
3054 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3055 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3056 ROLLBACK;
3057 Warnings:
3058 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3059 SET GTID_NEXT = 'AUTOMATIC';
3060 include/assert.inc [Both counters should be 0]
3061 DROP TEMPORARY TABLE tmp_myisam1;
3062 ---- InnoDB and temp MyISAM in one autocommit statement, binlog_format=mix ----
3063 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
3064 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
3065 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
3066 # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=ANONYMOUS
3067 SET GTID_NEXT = 'ANONYMOUS';
3068 [START] INSERT INTO innodb VALUES (1);
3069 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3070 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3071 [END] INSERT INTO innodb VALUES (1);
3072 include/assert.inc [No warning or error should be generated.]
3073 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3074 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3075 ROLLBACK;
3076 SET GTID_NEXT = 'AUTOMATIC';
3077 include/assert.inc [Both counters should be 0]
3078 DROP TRIGGER trig;
3079 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
3080 SET BINLOG_FORMAT = 'ROW';
3081 Warnings:
3082 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
3083 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
3084 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
3085 ---- InnoDB followed by temp MyISAM in one trx, binlog_format='row' ----
3086 # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=ANONYMOUS
3087 SET GTID_NEXT = 'ANONYMOUS';
3088 BEGIN; INSERT INTO innodb VALUES (1);
3089 [START] INSERT INTO tmp_myisam1 VALUES (1);
3090 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3091 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3092 [END] INSERT INTO tmp_myisam1 VALUES (1);
3093 include/assert.inc [No warning or error should be generated.]
3094 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3095 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3096 ROLLBACK;
3097 Warnings:
3098 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3099 SET GTID_NEXT = 'AUTOMATIC';
3100 include/assert.inc [Both counters should be 0]
3101 ---- InnoDB and temp MyISAM in one statement, binlog_format='row' ----
3102 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
3103 # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=ANONYMOUS
3104 SET GTID_NEXT = 'ANONYMOUS';
3105 [START] INSERT INTO innodb VALUES (1);
3106 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3107 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3108 [END] INSERT INTO innodb VALUES (1);
3109 include/assert.inc [No warning or error should be generated.]
3110 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3111 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3112 ROLLBACK;
3113 SET GTID_NEXT = 'AUTOMATIC';
3114 include/assert.inc [Both counters should be 0]
3115 DROP TRIGGER trig;
3116 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
3117 SET BINLOG_FORMAT = #;
3118 Warnings:
3119 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
3120 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
3121 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
3122 SET SQL_LOG_BIN = 0;
3123 ---- InnoDB and MyISAM in one statement, SQL_LOG_BIN=0 ----
3124 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
3125 # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=ANONYMOUS
3126 SET GTID_NEXT = 'ANONYMOUS';
3127 [START] INSERT INTO innodb VALUES (1);
3128 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3129 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3130 [END] INSERT INTO innodb VALUES (1);
3131 include/assert.inc [No warning or error should be generated.]
3132 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3133 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3134 ROLLBACK;
3135 SET GTID_NEXT = 'AUTOMATIC';
3136 include/assert.inc [Both counters should be 0]
3137 DROP TRIGGER trig;
3138 ---- InnoDB followed by MyISAM, in one trx, SQL_LOG_BIN=0 ----
3139 # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=ANONYMOUS
3140 SET GTID_NEXT = 'ANONYMOUS';
3141 BEGIN; INSERT INTO innodb VALUES (1);
3142 [START] INSERT INTO myisam1 VALUES (1);
3143 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3144 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3145 [END] INSERT INTO myisam1 VALUES (1);
3146 include/assert.inc [No warning or error should be generated.]
3147 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3148 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3149 ROLLBACK;
3150 Warnings:
3151 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3152 SET GTID_NEXT = 'AUTOMATIC';
3153 include/assert.inc [Both counters should be 0]
3154 ---- InnoDB and MyISAM in one statement inside trx, SQL_LOG_BIN=0 ----
3155 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
3156 # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=ANONYMOUS
3157 SET GTID_NEXT = 'ANONYMOUS';
3158 BEGIN;
3159 [START] INSERT INTO innodb VALUES (1);
3160 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3161 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3162 [END] INSERT INTO innodb VALUES (1);
3163 include/assert.inc [No warning or error should be generated.]
3164 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3165 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3166 ROLLBACK;
3167 Warnings:
3168 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3169 SET GTID_NEXT = 'AUTOMATIC';
3170 include/assert.inc [Both counters should be 0]
3171 DROP TRIGGER trig;
3172 SET SQL_LOG_BIN = 1;
3173 DROP TABLE myisam1, myisam2, tmp_myisam1, tmp_myisam2, innodb;
3174 SET GLOBAL ENFORCE_GTID_CONSISTENCY = 2;
3175 SET GLOBAL GTID_MODE = OFF_PERMISSIVE;
3176 SET GLOBAL GTID_MODE = ON_PERMISSIVE;
3177 SET GLOBAL GTID_MODE = 2;
3178 ######## ENFORCE_GTID_CONSISTENCY=WARN GTID_MODE=ON_PERMISSIVE GTID_NEXT=AUTOMATIC ########
3179 CREATE TABLE myisam1 (a INT) ENGINE = MyISAM;
3180 CREATE TABLE myisam2 (a INT) ENGINE = MyISAM;
3181 CREATE TABLE innodb (a INT) ENGINE = InnoDB;
3182 ---- MyISAM followed by MyISAM, in one 'trx' ----
3183 # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=AUTOMATIC
3184 SET GTID_NEXT = 'AUTOMATIC';
3185 BEGIN; INSERT INTO myisam1 VALUES (1);
3186 [START] INSERT INTO myisam2 VALUES (1);
3187 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3188 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3189 [END] INSERT INTO myisam2 VALUES (1);
3190 include/assert.inc [No warning or error should be generated.]
3191 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3192 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3193 ROLLBACK;
3194 Warnings:
3195 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3196 SET GTID_NEXT = 'AUTOMATIC';
3197 include/assert.inc [Both counters should be 0]
3198 ---- MyISAM and MyISAM in one statement ----
3199 CREATE TRIGGER trig BEFORE INSERT ON myisam1 FOR EACH ROW INSERT INTO myisam2 VALUES (1);
3200 # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=AUTOMATIC
3201 SET GTID_NEXT = 'AUTOMATIC';
3202 [START] INSERT INTO myisam2 VALUES (1);
3203 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3204 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3205 [END] INSERT INTO myisam2 VALUES (1);
3206 include/assert.inc [No warning or error should be generated.]
3207 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3208 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3209 ROLLBACK;
3210 SET GTID_NEXT = 'AUTOMATIC';
3211 include/assert.inc [Both counters should be 0]
3212 DROP TRIGGER trig;
3213 ---- MyISAM followed by InnoDB, in one 'trx' ----
3214 # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=AUTOMATIC
3215 SET GTID_NEXT = 'AUTOMATIC';
3216 BEGIN; INSERT INTO myisam1 VALUES (1);
3217 [START] INSERT INTO innodb VALUES (1);
3218 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3219 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3220 [END] INSERT INTO innodb VALUES (1);
3221 include/assert.inc [No warning or error should be generated.]
3222 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3223 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3224 ROLLBACK;
3225 Warnings:
3226 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3227 SET GTID_NEXT = 'AUTOMATIC';
3228 include/assert.inc [Both counters should be 0]
3229 SET SESSION BINLOG_FORMAT = MIXED;
3230 Warnings:
3231 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
3232 ---- InnoDB followed by temp MyISAM in one trx, binlog_format=mix ----
3233 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
3234 # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=AUTOMATIC
3235 SET GTID_NEXT = 'AUTOMATIC';
3236 BEGIN; INSERT INTO innodb VALUES (1);
3237 [START] INSERT INTO tmp_myisam1 VALUES (1);
3238 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3239 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3240 [END] INSERT INTO tmp_myisam1 VALUES (1);
3241 include/assert.inc [No warning or error should be generated.]
3242 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3243 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3244 ROLLBACK;
3245 Warnings:
3246 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3247 SET GTID_NEXT = 'AUTOMATIC';
3248 include/assert.inc [Both counters should be 0]
3249 DROP TEMPORARY TABLE tmp_myisam1;
3250 ---- InnoDB and temp MyISAM in one autocommit statement, binlog_format=mix ----
3251 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
3252 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
3253 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
3254 # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=AUTOMATIC
3255 SET GTID_NEXT = 'AUTOMATIC';
3256 [START] INSERT INTO innodb VALUES (1);
3257 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3258 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3259 [END] INSERT INTO innodb VALUES (1);
3260 include/assert.inc [No warning or error should be generated.]
3261 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3262 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3263 ROLLBACK;
3264 SET GTID_NEXT = 'AUTOMATIC';
3265 include/assert.inc [Both counters should be 0]
3266 DROP TRIGGER trig;
3267 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
3268 SET BINLOG_FORMAT = 'ROW';
3269 Warnings:
3270 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
3271 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
3272 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
3273 ---- InnoDB followed by temp MyISAM in one trx, binlog_format='row' ----
3274 # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=AUTOMATIC
3275 SET GTID_NEXT = 'AUTOMATIC';
3276 BEGIN; INSERT INTO innodb VALUES (1);
3277 [START] INSERT INTO tmp_myisam1 VALUES (1);
3278 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3279 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3280 [END] INSERT INTO tmp_myisam1 VALUES (1);
3281 include/assert.inc [No warning or error should be generated.]
3282 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3283 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3284 ROLLBACK;
3285 Warnings:
3286 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3287 SET GTID_NEXT = 'AUTOMATIC';
3288 include/assert.inc [Both counters should be 0]
3289 ---- InnoDB and temp MyISAM in one statement, binlog_format='row' ----
3290 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
3291 # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=AUTOMATIC
3292 SET GTID_NEXT = 'AUTOMATIC';
3293 [START] INSERT INTO innodb VALUES (1);
3294 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3295 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3296 [END] INSERT INTO innodb VALUES (1);
3297 include/assert.inc [No warning or error should be generated.]
3298 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3299 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3300 ROLLBACK;
3301 SET GTID_NEXT = 'AUTOMATIC';
3302 include/assert.inc [Both counters should be 0]
3303 DROP TRIGGER trig;
3304 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
3305 SET BINLOG_FORMAT = #;
3306 Warnings:
3307 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
3308 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
3309 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
3310 SET SQL_LOG_BIN = 0;
3311 ---- InnoDB and MyISAM in one statement, SQL_LOG_BIN=0 ----
3312 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
3313 # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=AUTOMATIC
3314 SET GTID_NEXT = 'AUTOMATIC';
3315 [START] INSERT INTO innodb VALUES (1);
3316 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3317 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3318 [END] INSERT INTO innodb VALUES (1);
3319 include/assert.inc [No warning or error should be generated.]
3320 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3321 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3322 ROLLBACK;
3323 SET GTID_NEXT = 'AUTOMATIC';
3324 include/assert.inc [Both counters should be 0]
3325 DROP TRIGGER trig;
3326 ---- InnoDB followed by MyISAM, in one trx, SQL_LOG_BIN=0 ----
3327 # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=AUTOMATIC
3328 SET GTID_NEXT = 'AUTOMATIC';
3329 BEGIN; INSERT INTO innodb VALUES (1);
3330 [START] INSERT INTO myisam1 VALUES (1);
3331 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3332 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3333 [END] INSERT INTO myisam1 VALUES (1);
3334 include/assert.inc [No warning or error should be generated.]
3335 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3336 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3337 ROLLBACK;
3338 Warnings:
3339 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3340 SET GTID_NEXT = 'AUTOMATIC';
3341 include/assert.inc [Both counters should be 0]
3342 ---- InnoDB and MyISAM in one statement inside trx, SQL_LOG_BIN=0 ----
3343 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
3344 # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=AUTOMATIC
3345 SET GTID_NEXT = 'AUTOMATIC';
3346 BEGIN;
3347 [START] INSERT INTO innodb VALUES (1);
3348 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3349 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3350 [END] INSERT INTO innodb VALUES (1);
3351 include/assert.inc [No warning or error should be generated.]
3352 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3353 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3354 ROLLBACK;
3355 Warnings:
3356 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3357 SET GTID_NEXT = 'AUTOMATIC';
3358 include/assert.inc [Both counters should be 0]
3359 DROP TRIGGER trig;
3360 SET SQL_LOG_BIN = 1;
3361 DROP TABLE myisam1, myisam2, tmp_myisam1, tmp_myisam2, innodb;
3362 ######## ENFORCE_GTID_CONSISTENCY=WARN GTID_MODE=ON_PERMISSIVE GTID_NEXT=ANONYMOUS ########
3363 CREATE TABLE myisam1 (a INT) ENGINE = MyISAM;
3364 CREATE TABLE myisam2 (a INT) ENGINE = MyISAM;
3365 CREATE TABLE innodb (a INT) ENGINE = InnoDB;
3366 ---- MyISAM followed by MyISAM, in one 'trx' ----
3367 # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=ANONYMOUS
3368 SET GTID_NEXT = 'ANONYMOUS';
3369 BEGIN; INSERT INTO myisam1 VALUES (1);
3370 [START] INSERT INTO myisam2 VALUES (1);
3371 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3372 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3373 [END] INSERT INTO myisam2 VALUES (1);
3374 include/assert.inc [No warning or error should be generated.]
3375 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3376 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3377 ROLLBACK;
3378 Warnings:
3379 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3380 SET GTID_NEXT = 'AUTOMATIC';
3381 include/assert.inc [Both counters should be 0]
3382 ---- MyISAM and MyISAM in one statement ----
3383 CREATE TRIGGER trig BEFORE INSERT ON myisam1 FOR EACH ROW INSERT INTO myisam2 VALUES (1);
3384 # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=ANONYMOUS
3385 SET GTID_NEXT = 'ANONYMOUS';
3386 [START] INSERT INTO myisam2 VALUES (1);
3387 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3388 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3389 [END] INSERT INTO myisam2 VALUES (1);
3390 include/assert.inc [No warning or error should be generated.]
3391 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3392 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3393 ROLLBACK;
3394 SET GTID_NEXT = 'AUTOMATIC';
3395 include/assert.inc [Both counters should be 0]
3396 DROP TRIGGER trig;
3397 ---- MyISAM followed by InnoDB, in one 'trx' ----
3398 # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=ANONYMOUS
3399 SET GTID_NEXT = 'ANONYMOUS';
3400 BEGIN; INSERT INTO myisam1 VALUES (1);
3401 [START] INSERT INTO innodb VALUES (1);
3402 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3403 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3404 [END] INSERT INTO innodb VALUES (1);
3405 include/assert.inc [No warning or error should be generated.]
3406 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3407 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3408 ROLLBACK;
3409 Warnings:
3410 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3411 SET GTID_NEXT = 'AUTOMATIC';
3412 include/assert.inc [Both counters should be 0]
3413 SET SESSION BINLOG_FORMAT = MIXED;
3414 Warnings:
3415 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
3416 ---- InnoDB followed by temp MyISAM in one trx, binlog_format=mix ----
3417 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
3418 # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=ANONYMOUS
3419 SET GTID_NEXT = 'ANONYMOUS';
3420 BEGIN; INSERT INTO innodb VALUES (1);
3421 [START] INSERT INTO tmp_myisam1 VALUES (1);
3422 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3423 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3424 [END] INSERT INTO tmp_myisam1 VALUES (1);
3425 include/assert.inc [No warning or error should be generated.]
3426 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3427 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3428 ROLLBACK;
3429 Warnings:
3430 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3431 SET GTID_NEXT = 'AUTOMATIC';
3432 include/assert.inc [Both counters should be 0]
3433 DROP TEMPORARY TABLE tmp_myisam1;
3434 ---- InnoDB and temp MyISAM in one autocommit statement, binlog_format=mix ----
3435 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
3436 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
3437 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
3438 # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=ANONYMOUS
3439 SET GTID_NEXT = 'ANONYMOUS';
3440 [START] INSERT INTO innodb VALUES (1);
3441 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3442 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3443 [END] INSERT INTO innodb VALUES (1);
3444 include/assert.inc [No warning or error should be generated.]
3445 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3446 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3447 ROLLBACK;
3448 SET GTID_NEXT = 'AUTOMATIC';
3449 include/assert.inc [Both counters should be 0]
3450 DROP TRIGGER trig;
3451 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
3452 SET BINLOG_FORMAT = 'ROW';
3453 Warnings:
3454 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
3455 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
3456 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
3457 ---- InnoDB followed by temp MyISAM in one trx, binlog_format='row' ----
3458 # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=ANONYMOUS
3459 SET GTID_NEXT = 'ANONYMOUS';
3460 BEGIN; INSERT INTO innodb VALUES (1);
3461 [START] INSERT INTO tmp_myisam1 VALUES (1);
3462 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3463 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3464 [END] INSERT INTO tmp_myisam1 VALUES (1);
3465 include/assert.inc [No warning or error should be generated.]
3466 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3467 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3468 ROLLBACK;
3469 Warnings:
3470 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3471 SET GTID_NEXT = 'AUTOMATIC';
3472 include/assert.inc [Both counters should be 0]
3473 ---- InnoDB and temp MyISAM in one statement, binlog_format='row' ----
3474 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
3475 # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=ANONYMOUS
3476 SET GTID_NEXT = 'ANONYMOUS';
3477 [START] INSERT INTO innodb VALUES (1);
3478 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3479 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3480 [END] INSERT INTO innodb VALUES (1);
3481 include/assert.inc [No warning or error should be generated.]
3482 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3483 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3484 ROLLBACK;
3485 SET GTID_NEXT = 'AUTOMATIC';
3486 include/assert.inc [Both counters should be 0]
3487 DROP TRIGGER trig;
3488 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
3489 SET BINLOG_FORMAT = #;
3490 Warnings:
3491 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
3492 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
3493 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
3494 SET SQL_LOG_BIN = 0;
3495 ---- InnoDB and MyISAM in one statement, SQL_LOG_BIN=0 ----
3496 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
3497 # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=ANONYMOUS
3498 SET GTID_NEXT = 'ANONYMOUS';
3499 [START] INSERT INTO innodb VALUES (1);
3500 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3501 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3502 [END] INSERT INTO innodb VALUES (1);
3503 include/assert.inc [No warning or error should be generated.]
3504 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3505 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3506 ROLLBACK;
3507 SET GTID_NEXT = 'AUTOMATIC';
3508 include/assert.inc [Both counters should be 0]
3509 DROP TRIGGER trig;
3510 ---- InnoDB followed by MyISAM, in one trx, SQL_LOG_BIN=0 ----
3511 # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=ANONYMOUS
3512 SET GTID_NEXT = 'ANONYMOUS';
3513 BEGIN; INSERT INTO innodb VALUES (1);
3514 [START] INSERT INTO myisam1 VALUES (1);
3515 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3516 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3517 [END] INSERT INTO myisam1 VALUES (1);
3518 include/assert.inc [No warning or error should be generated.]
3519 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3520 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3521 ROLLBACK;
3522 Warnings:
3523 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3524 SET GTID_NEXT = 'AUTOMATIC';
3525 include/assert.inc [Both counters should be 0]
3526 ---- InnoDB and MyISAM in one statement inside trx, SQL_LOG_BIN=0 ----
3527 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
3528 # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=ANONYMOUS
3529 SET GTID_NEXT = 'ANONYMOUS';
3530 BEGIN;
3531 [START] INSERT INTO innodb VALUES (1);
3532 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3533 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3534 [END] INSERT INTO innodb VALUES (1);
3535 include/assert.inc [No warning or error should be generated.]
3536 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3537 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3538 ROLLBACK;
3539 Warnings:
3540 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3541 SET GTID_NEXT = 'AUTOMATIC';
3542 include/assert.inc [Both counters should be 0]
3543 DROP TRIGGER trig;
3544 SET SQL_LOG_BIN = 1;
3545 DROP TABLE myisam1, myisam2, tmp_myisam1, tmp_myisam2, innodb;
3546 ######## ENFORCE_GTID_CONSISTENCY=WARN GTID_MODE=ON_PERMISSIVE GTID_NEXT=GTID ########
3547 CREATE TABLE myisam1 (a INT) ENGINE = MyISAM;
3548 CREATE TABLE myisam2 (a INT) ENGINE = MyISAM;
3549 CREATE TABLE innodb (a INT) ENGINE = InnoDB;
3550 ---- MyISAM and MyISAM in one statement ----
3551 CREATE TRIGGER trig BEFORE INSERT ON myisam1 FOR EACH ROW INSERT INTO myisam2 VALUES (1);
3552 # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=GTID
3553 SET GTID_NEXT = 'GTID';
3554 [START] INSERT INTO myisam2 VALUES (1);
3555 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3556 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3557 [END] INSERT INTO myisam2 VALUES (1);
3558 include/assert.inc [No warning or error should be generated.]
3559 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3560 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3561 ROLLBACK;
3562 SET GTID_NEXT = 'AUTOMATIC';
3563 include/assert.inc [Both counters should be 0]
3564 DROP TRIGGER trig;
3565 SET SESSION BINLOG_FORMAT = MIXED;
3566 Warnings:
3567 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
3568 ---- InnoDB followed by temp MyISAM in one trx, binlog_format=mix ----
3569 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
3570 # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=GTID
3571 SET GTID_NEXT = 'GTID';
3572 BEGIN; INSERT INTO innodb VALUES (1);
3573 [START] INSERT INTO tmp_myisam1 VALUES (1);
3574 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3575 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3576 [END] INSERT INTO tmp_myisam1 VALUES (1);
3577 include/assert.inc [No warning or error should be generated.]
3578 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3579 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3580 ROLLBACK;
3581 Warnings:
3582 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3583 SET GTID_NEXT = 'AUTOMATIC';
3584 include/assert.inc [Both counters should be 0]
3585 DROP TEMPORARY TABLE tmp_myisam1;
3586 ---- InnoDB and temp MyISAM in one autocommit statement, binlog_format=mix ----
3587 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
3588 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
3589 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
3590 # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=GTID
3591 SET GTID_NEXT = 'GTID';
3592 [START] INSERT INTO innodb VALUES (1);
3593 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3594 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3595 [END] INSERT INTO innodb VALUES (1);
3596 include/assert.inc [No warning or error should be generated.]
3597 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3598 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3599 ROLLBACK;
3600 SET GTID_NEXT = 'AUTOMATIC';
3601 include/assert.inc [Both counters should be 0]
3602 DROP TRIGGER trig;
3603 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
3604 SET BINLOG_FORMAT = 'ROW';
3605 Warnings:
3606 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
3607 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
3608 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
3609 ---- InnoDB followed by temp MyISAM in one trx, binlog_format='row' ----
3610 # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=GTID
3611 SET GTID_NEXT = 'GTID';
3612 BEGIN; INSERT INTO innodb VALUES (1);
3613 [START] INSERT INTO tmp_myisam1 VALUES (1);
3614 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3615 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3616 [END] INSERT INTO tmp_myisam1 VALUES (1);
3617 include/assert.inc [No warning or error should be generated.]
3618 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3619 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3620 ROLLBACK;
3621 Warnings:
3622 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3623 SET GTID_NEXT = 'AUTOMATIC';
3624 include/assert.inc [Both counters should be 0]
3625 ---- InnoDB and temp MyISAM in one statement, binlog_format='row' ----
3626 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
3627 # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=GTID
3628 SET GTID_NEXT = 'GTID';
3629 [START] INSERT INTO innodb VALUES (1);
3630 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3631 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3632 [END] INSERT INTO innodb VALUES (1);
3633 include/assert.inc [No warning or error should be generated.]
3634 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3635 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3636 ROLLBACK;
3637 SET GTID_NEXT = 'AUTOMATIC';
3638 include/assert.inc [Both counters should be 0]
3639 DROP TRIGGER trig;
3640 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
3641 SET BINLOG_FORMAT = #;
3642 Warnings:
3643 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
3644 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
3645 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
3646 SET SQL_LOG_BIN = 0;
3647 ---- InnoDB and MyISAM in one statement, SQL_LOG_BIN=0 ----
3648 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
3649 # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=GTID
3650 SET GTID_NEXT = 'GTID';
3651 [START] INSERT INTO innodb VALUES (1);
3652 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3653 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3654 [END] INSERT INTO innodb VALUES (1);
3655 include/assert.inc [No warning or error should be generated.]
3656 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3657 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3658 ROLLBACK;
3659 SET GTID_NEXT = 'AUTOMATIC';
3660 include/assert.inc [Both counters should be 0]
3661 DROP TRIGGER trig;
3662 ---- InnoDB followed by MyISAM, in one trx, SQL_LOG_BIN=0 ----
3663 # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=GTID
3664 SET GTID_NEXT = 'GTID';
3665 BEGIN; INSERT INTO innodb VALUES (1);
3666 [START] INSERT INTO myisam1 VALUES (1);
3667 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3668 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3669 [END] INSERT INTO myisam1 VALUES (1);
3670 include/assert.inc [No warning or error should be generated.]
3671 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3672 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3673 ROLLBACK;
3674 Warnings:
3675 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3676 SET GTID_NEXT = 'AUTOMATIC';
3677 include/assert.inc [Both counters should be 0]
3678 ---- InnoDB and MyISAM in one statement inside trx, SQL_LOG_BIN=0 ----
3679 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
3680 # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=GTID
3681 SET GTID_NEXT = 'GTID';
3682 BEGIN;
3683 [START] INSERT INTO innodb VALUES (1);
3684 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3685 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3686 [END] INSERT INTO innodb VALUES (1);
3687 include/assert.inc [No warning or error should be generated.]
3688 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3689 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3690 ROLLBACK;
3691 Warnings:
3692 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3693 SET GTID_NEXT = 'AUTOMATIC';
3694 include/assert.inc [Both counters should be 0]
3695 DROP TRIGGER trig;
3696 SET SQL_LOG_BIN = 1;
3697 DROP TABLE myisam1, myisam2, tmp_myisam1, tmp_myisam2, innodb;
3698 SET GLOBAL GTID_MODE = 1;
3699 ######## ENFORCE_GTID_CONSISTENCY=WARN GTID_MODE=OFF_PERMISSIVE GTID_NEXT=AUTOMATIC ########
3700 CREATE TABLE myisam1 (a INT) ENGINE = MyISAM;
3701 CREATE TABLE myisam2 (a INT) ENGINE = MyISAM;
3702 CREATE TABLE innodb (a INT) ENGINE = InnoDB;
3703 ---- MyISAM followed by MyISAM, in one 'trx' ----
3704 # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=AUTOMATIC
3705 SET GTID_NEXT = 'AUTOMATIC';
3706 BEGIN; INSERT INTO myisam1 VALUES (1);
3707 [START] INSERT INTO myisam2 VALUES (1);
3708 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3709 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3710 [END] INSERT INTO myisam2 VALUES (1);
3711 include/assert.inc [No warning or error should be generated.]
3712 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3713 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3714 ROLLBACK;
3715 Warnings:
3716 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3717 SET GTID_NEXT = 'AUTOMATIC';
3718 include/assert.inc [Both counters should be 0]
3719 ---- MyISAM and MyISAM in one statement ----
3720 CREATE TRIGGER trig BEFORE INSERT ON myisam1 FOR EACH ROW INSERT INTO myisam2 VALUES (1);
3721 # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=AUTOMATIC
3722 SET GTID_NEXT = 'AUTOMATIC';
3723 [START] INSERT INTO myisam2 VALUES (1);
3724 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3725 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3726 [END] INSERT INTO myisam2 VALUES (1);
3727 include/assert.inc [No warning or error should be generated.]
3728 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3729 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3730 ROLLBACK;
3731 SET GTID_NEXT = 'AUTOMATIC';
3732 include/assert.inc [Both counters should be 0]
3733 DROP TRIGGER trig;
3734 ---- MyISAM followed by InnoDB, in one 'trx' ----
3735 # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=AUTOMATIC
3736 SET GTID_NEXT = 'AUTOMATIC';
3737 BEGIN; INSERT INTO myisam1 VALUES (1);
3738 [START] INSERT INTO innodb VALUES (1);
3739 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3740 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3741 [END] INSERT INTO innodb VALUES (1);
3742 include/assert.inc [No warning or error should be generated.]
3743 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3744 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3745 ROLLBACK;
3746 Warnings:
3747 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3748 SET GTID_NEXT = 'AUTOMATIC';
3749 include/assert.inc [Both counters should be 0]
3750 SET SESSION BINLOG_FORMAT = MIXED;
3751 Warnings:
3752 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
3753 ---- InnoDB followed by temp MyISAM in one trx, binlog_format=mix ----
3754 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
3755 # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=AUTOMATIC
3756 SET GTID_NEXT = 'AUTOMATIC';
3757 BEGIN; INSERT INTO innodb VALUES (1);
3758 [START] INSERT INTO tmp_myisam1 VALUES (1);
3759 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3760 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3761 [END] INSERT INTO tmp_myisam1 VALUES (1);
3762 include/assert.inc [No warning or error should be generated.]
3763 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3764 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3765 ROLLBACK;
3766 Warnings:
3767 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3768 SET GTID_NEXT = 'AUTOMATIC';
3769 include/assert.inc [Both counters should be 0]
3770 DROP TEMPORARY TABLE tmp_myisam1;
3771 ---- InnoDB and temp MyISAM in one autocommit statement, binlog_format=mix ----
3772 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
3773 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
3774 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
3775 # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=AUTOMATIC
3776 SET GTID_NEXT = 'AUTOMATIC';
3777 [START] INSERT INTO innodb VALUES (1);
3778 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3779 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3780 [END] INSERT INTO innodb VALUES (1);
3781 include/assert.inc [No warning or error should be generated.]
3782 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3783 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3784 ROLLBACK;
3785 SET GTID_NEXT = 'AUTOMATIC';
3786 include/assert.inc [Both counters should be 0]
3787 DROP TRIGGER trig;
3788 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
3789 SET BINLOG_FORMAT = 'ROW';
3790 Warnings:
3791 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
3792 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
3793 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
3794 ---- InnoDB followed by temp MyISAM in one trx, binlog_format='row' ----
3795 # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=AUTOMATIC
3796 SET GTID_NEXT = 'AUTOMATIC';
3797 BEGIN; INSERT INTO innodb VALUES (1);
3798 [START] INSERT INTO tmp_myisam1 VALUES (1);
3799 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3800 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3801 [END] INSERT INTO tmp_myisam1 VALUES (1);
3802 include/assert.inc [No warning or error should be generated.]
3803 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3804 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3805 ROLLBACK;
3806 Warnings:
3807 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3808 SET GTID_NEXT = 'AUTOMATIC';
3809 include/assert.inc [Both counters should be 0]
3810 ---- InnoDB and temp MyISAM in one statement, binlog_format='row' ----
3811 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
3812 # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=AUTOMATIC
3813 SET GTID_NEXT = 'AUTOMATIC';
3814 [START] INSERT INTO innodb VALUES (1);
3815 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3816 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3817 [END] INSERT INTO innodb VALUES (1);
3818 include/assert.inc [No warning or error should be generated.]
3819 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3820 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3821 ROLLBACK;
3822 SET GTID_NEXT = 'AUTOMATIC';
3823 include/assert.inc [Both counters should be 0]
3824 DROP TRIGGER trig;
3825 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
3826 SET BINLOG_FORMAT = #;
3827 Warnings:
3828 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
3829 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
3830 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
3831 SET SQL_LOG_BIN = 0;
3832 ---- InnoDB and MyISAM in one statement, SQL_LOG_BIN=0 ----
3833 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
3834 # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=AUTOMATIC
3835 SET GTID_NEXT = 'AUTOMATIC';
3836 [START] INSERT INTO innodb VALUES (1);
3837 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3838 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3839 [END] INSERT INTO innodb VALUES (1);
3840 include/assert.inc [No warning or error should be generated.]
3841 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3842 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3843 ROLLBACK;
3844 SET GTID_NEXT = 'AUTOMATIC';
3845 include/assert.inc [Both counters should be 0]
3846 DROP TRIGGER trig;
3847 ---- InnoDB followed by MyISAM, in one trx, SQL_LOG_BIN=0 ----
3848 # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=AUTOMATIC
3849 SET GTID_NEXT = 'AUTOMATIC';
3850 BEGIN; INSERT INTO innodb VALUES (1);
3851 [START] INSERT INTO myisam1 VALUES (1);
3852 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3853 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3854 [END] INSERT INTO myisam1 VALUES (1);
3855 include/assert.inc [No warning or error should be generated.]
3856 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3857 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3858 ROLLBACK;
3859 Warnings:
3860 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3861 SET GTID_NEXT = 'AUTOMATIC';
3862 include/assert.inc [Both counters should be 0]
3863 ---- InnoDB and MyISAM in one statement inside trx, SQL_LOG_BIN=0 ----
3864 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
3865 # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=AUTOMATIC
3866 SET GTID_NEXT = 'AUTOMATIC';
3867 BEGIN;
3868 [START] INSERT INTO innodb VALUES (1);
3869 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3870 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3871 [END] INSERT INTO innodb VALUES (1);
3872 include/assert.inc [No warning or error should be generated.]
3873 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3874 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3875 ROLLBACK;
3876 Warnings:
3877 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3878 SET GTID_NEXT = 'AUTOMATIC';
3879 include/assert.inc [Both counters should be 0]
3880 DROP TRIGGER trig;
3881 SET SQL_LOG_BIN = 1;
3882 DROP TABLE myisam1, myisam2, tmp_myisam1, tmp_myisam2, innodb;
3883 ######## ENFORCE_GTID_CONSISTENCY=WARN GTID_MODE=OFF_PERMISSIVE GTID_NEXT=ANONYMOUS ########
3884 CREATE TABLE myisam1 (a INT) ENGINE = MyISAM;
3885 CREATE TABLE myisam2 (a INT) ENGINE = MyISAM;
3886 CREATE TABLE innodb (a INT) ENGINE = InnoDB;
3887 ---- MyISAM followed by MyISAM, in one 'trx' ----
3888 # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=ANONYMOUS
3889 SET GTID_NEXT = 'ANONYMOUS';
3890 BEGIN; INSERT INTO myisam1 VALUES (1);
3891 [START] INSERT INTO myisam2 VALUES (1);
3892 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3893 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3894 [END] INSERT INTO myisam2 VALUES (1);
3895 include/assert.inc [No warning or error should be generated.]
3896 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3897 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3898 ROLLBACK;
3899 Warnings:
3900 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3901 SET GTID_NEXT = 'AUTOMATIC';
3902 include/assert.inc [Both counters should be 0]
3903 ---- MyISAM and MyISAM in one statement ----
3904 CREATE TRIGGER trig BEFORE INSERT ON myisam1 FOR EACH ROW INSERT INTO myisam2 VALUES (1);
3905 # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=ANONYMOUS
3906 SET GTID_NEXT = 'ANONYMOUS';
3907 [START] INSERT INTO myisam2 VALUES (1);
3908 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3909 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3910 [END] INSERT INTO myisam2 VALUES (1);
3911 include/assert.inc [No warning or error should be generated.]
3912 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3913 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3914 ROLLBACK;
3915 SET GTID_NEXT = 'AUTOMATIC';
3916 include/assert.inc [Both counters should be 0]
3917 DROP TRIGGER trig;
3918 ---- MyISAM followed by InnoDB, in one 'trx' ----
3919 # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=ANONYMOUS
3920 SET GTID_NEXT = 'ANONYMOUS';
3921 BEGIN; INSERT INTO myisam1 VALUES (1);
3922 [START] INSERT INTO innodb VALUES (1);
3923 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3924 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3925 [END] INSERT INTO innodb VALUES (1);
3926 include/assert.inc [No warning or error should be generated.]
3927 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3928 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3929 ROLLBACK;
3930 Warnings:
3931 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3932 SET GTID_NEXT = 'AUTOMATIC';
3933 include/assert.inc [Both counters should be 0]
3934 SET SESSION BINLOG_FORMAT = MIXED;
3935 Warnings:
3936 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
3937 ---- InnoDB followed by temp MyISAM in one trx, binlog_format=mix ----
3938 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
3939 # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=ANONYMOUS
3940 SET GTID_NEXT = 'ANONYMOUS';
3941 BEGIN; INSERT INTO innodb VALUES (1);
3942 [START] INSERT INTO tmp_myisam1 VALUES (1);
3943 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3944 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3945 [END] INSERT INTO tmp_myisam1 VALUES (1);
3946 include/assert.inc [No warning or error should be generated.]
3947 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3948 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3949 ROLLBACK;
3950 Warnings:
3951 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3952 SET GTID_NEXT = 'AUTOMATIC';
3953 include/assert.inc [Both counters should be 0]
3954 DROP TEMPORARY TABLE tmp_myisam1;
3955 ---- InnoDB and temp MyISAM in one autocommit statement, binlog_format=mix ----
3956 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
3957 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
3958 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
3959 # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=ANONYMOUS
3960 SET GTID_NEXT = 'ANONYMOUS';
3961 [START] INSERT INTO innodb VALUES (1);
3962 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3963 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3964 [END] INSERT INTO innodb VALUES (1);
3965 include/assert.inc [No warning or error should be generated.]
3966 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3967 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3968 ROLLBACK;
3969 SET GTID_NEXT = 'AUTOMATIC';
3970 include/assert.inc [Both counters should be 0]
3971 DROP TRIGGER trig;
3972 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
3973 SET BINLOG_FORMAT = 'ROW';
3974 Warnings:
3975 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
3976 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
3977 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
3978 ---- InnoDB followed by temp MyISAM in one trx, binlog_format='row' ----
3979 # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=ANONYMOUS
3980 SET GTID_NEXT = 'ANONYMOUS';
3981 BEGIN; INSERT INTO innodb VALUES (1);
3982 [START] INSERT INTO tmp_myisam1 VALUES (1);
3983 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3984 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3985 [END] INSERT INTO tmp_myisam1 VALUES (1);
3986 include/assert.inc [No warning or error should be generated.]
3987 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3988 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
3989 ROLLBACK;
3990 Warnings:
3991 Warning 1196 Some non-transactional changed tables couldn't be rolled back
3992 SET GTID_NEXT = 'AUTOMATIC';
3993 include/assert.inc [Both counters should be 0]
3994 ---- InnoDB and temp MyISAM in one statement, binlog_format='row' ----
3995 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
3996 # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=ANONYMOUS
3997 SET GTID_NEXT = 'ANONYMOUS';
3998 [START] INSERT INTO innodb VALUES (1);
3999 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4000 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4001 [END] INSERT INTO innodb VALUES (1);
4002 include/assert.inc [No warning or error should be generated.]
4003 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4004 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4005 ROLLBACK;
4006 SET GTID_NEXT = 'AUTOMATIC';
4007 include/assert.inc [Both counters should be 0]
4008 DROP TRIGGER trig;
4009 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
4010 SET BINLOG_FORMAT = #;
4011 Warnings:
4012 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
4013 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
4014 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
4015 SET SQL_LOG_BIN = 0;
4016 ---- InnoDB and MyISAM in one statement, SQL_LOG_BIN=0 ----
4017 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
4018 # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=ANONYMOUS
4019 SET GTID_NEXT = 'ANONYMOUS';
4020 [START] INSERT INTO innodb VALUES (1);
4021 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4022 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4023 [END] INSERT INTO innodb VALUES (1);
4024 include/assert.inc [No warning or error should be generated.]
4025 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4026 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4027 ROLLBACK;
4028 SET GTID_NEXT = 'AUTOMATIC';
4029 include/assert.inc [Both counters should be 0]
4030 DROP TRIGGER trig;
4031 ---- InnoDB followed by MyISAM, in one trx, SQL_LOG_BIN=0 ----
4032 # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=ANONYMOUS
4033 SET GTID_NEXT = 'ANONYMOUS';
4034 BEGIN; INSERT INTO innodb VALUES (1);
4035 [START] INSERT INTO myisam1 VALUES (1);
4036 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4037 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4038 [END] INSERT INTO myisam1 VALUES (1);
4039 include/assert.inc [No warning or error should be generated.]
4040 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4041 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4042 ROLLBACK;
4043 Warnings:
4044 Warning 1196 Some non-transactional changed tables couldn't be rolled back
4045 SET GTID_NEXT = 'AUTOMATIC';
4046 include/assert.inc [Both counters should be 0]
4047 ---- InnoDB and MyISAM in one statement inside trx, SQL_LOG_BIN=0 ----
4048 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
4049 # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=ANONYMOUS
4050 SET GTID_NEXT = 'ANONYMOUS';
4051 BEGIN;
4052 [START] INSERT INTO innodb VALUES (1);
4053 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4054 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4055 [END] INSERT INTO innodb VALUES (1);
4056 include/assert.inc [No warning or error should be generated.]
4057 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4058 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4059 ROLLBACK;
4060 Warnings:
4061 Warning 1196 Some non-transactional changed tables couldn't be rolled back
4062 SET GTID_NEXT = 'AUTOMATIC';
4063 include/assert.inc [Both counters should be 0]
4064 DROP TRIGGER trig;
4065 SET SQL_LOG_BIN = 1;
4066 DROP TABLE myisam1, myisam2, tmp_myisam1, tmp_myisam2, innodb;
4067 ######## ENFORCE_GTID_CONSISTENCY=WARN GTID_MODE=OFF_PERMISSIVE GTID_NEXT=GTID ########
4068 CREATE TABLE myisam1 (a INT) ENGINE = MyISAM;
4069 CREATE TABLE myisam2 (a INT) ENGINE = MyISAM;
4070 CREATE TABLE innodb (a INT) ENGINE = InnoDB;
4071 ---- MyISAM and MyISAM in one statement ----
4072 CREATE TRIGGER trig BEFORE INSERT ON myisam1 FOR EACH ROW INSERT INTO myisam2 VALUES (1);
4073 # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=GTID
4074 SET GTID_NEXT = 'GTID';
4075 [START] INSERT INTO myisam2 VALUES (1);
4076 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4077 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4078 [END] INSERT INTO myisam2 VALUES (1);
4079 include/assert.inc [No warning or error should be generated.]
4080 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4081 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4082 ROLLBACK;
4083 SET GTID_NEXT = 'AUTOMATIC';
4084 include/assert.inc [Both counters should be 0]
4085 DROP TRIGGER trig;
4086 SET SESSION BINLOG_FORMAT = MIXED;
4087 Warnings:
4088 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
4089 ---- InnoDB followed by temp MyISAM in one trx, binlog_format=mix ----
4090 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
4091 # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=GTID
4092 SET GTID_NEXT = 'GTID';
4093 BEGIN; INSERT INTO innodb VALUES (1);
4094 [START] INSERT INTO tmp_myisam1 VALUES (1);
4095 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4096 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4097 [END] INSERT INTO tmp_myisam1 VALUES (1);
4098 include/assert.inc [No warning or error should be generated.]
4099 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4100 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4101 ROLLBACK;
4102 Warnings:
4103 Warning 1196 Some non-transactional changed tables couldn't be rolled back
4104 SET GTID_NEXT = 'AUTOMATIC';
4105 include/assert.inc [Both counters should be 0]
4106 DROP TEMPORARY TABLE tmp_myisam1;
4107 ---- InnoDB and temp MyISAM in one autocommit statement, binlog_format=mix ----
4108 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
4109 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
4110 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
4111 # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=GTID
4112 SET GTID_NEXT = 'GTID';
4113 [START] INSERT INTO innodb VALUES (1);
4114 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4115 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4116 [END] INSERT INTO innodb VALUES (1);
4117 include/assert.inc [No warning or error should be generated.]
4118 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4119 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4120 ROLLBACK;
4121 SET GTID_NEXT = 'AUTOMATIC';
4122 include/assert.inc [Both counters should be 0]
4123 DROP TRIGGER trig;
4124 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
4125 SET BINLOG_FORMAT = 'ROW';
4126 Warnings:
4127 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
4128 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
4129 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
4130 ---- InnoDB followed by temp MyISAM in one trx, binlog_format='row' ----
4131 # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=GTID
4132 SET GTID_NEXT = 'GTID';
4133 BEGIN; INSERT INTO innodb VALUES (1);
4134 [START] INSERT INTO tmp_myisam1 VALUES (1);
4135 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4136 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4137 [END] INSERT INTO tmp_myisam1 VALUES (1);
4138 include/assert.inc [No warning or error should be generated.]
4139 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4140 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4141 ROLLBACK;
4142 Warnings:
4143 Warning 1196 Some non-transactional changed tables couldn't be rolled back
4144 SET GTID_NEXT = 'AUTOMATIC';
4145 include/assert.inc [Both counters should be 0]
4146 ---- InnoDB and temp MyISAM in one statement, binlog_format='row' ----
4147 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
4148 # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=GTID
4149 SET GTID_NEXT = 'GTID';
4150 [START] INSERT INTO innodb VALUES (1);
4151 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4152 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4153 [END] INSERT INTO innodb VALUES (1);
4154 include/assert.inc [No warning or error should be generated.]
4155 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4156 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4157 ROLLBACK;
4158 SET GTID_NEXT = 'AUTOMATIC';
4159 include/assert.inc [Both counters should be 0]
4160 DROP TRIGGER trig;
4161 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
4162 SET BINLOG_FORMAT = #;
4163 Warnings:
4164 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
4165 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
4166 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
4167 SET SQL_LOG_BIN = 0;
4168 ---- InnoDB and MyISAM in one statement, SQL_LOG_BIN=0 ----
4169 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
4170 # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=GTID
4171 SET GTID_NEXT = 'GTID';
4172 [START] INSERT INTO innodb VALUES (1);
4173 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4174 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4175 [END] INSERT INTO innodb VALUES (1);
4176 include/assert.inc [No warning or error should be generated.]
4177 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4178 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4179 ROLLBACK;
4180 SET GTID_NEXT = 'AUTOMATIC';
4181 include/assert.inc [Both counters should be 0]
4182 DROP TRIGGER trig;
4183 ---- InnoDB followed by MyISAM, in one trx, SQL_LOG_BIN=0 ----
4184 # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=GTID
4185 SET GTID_NEXT = 'GTID';
4186 BEGIN; INSERT INTO innodb VALUES (1);
4187 [START] INSERT INTO myisam1 VALUES (1);
4188 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4189 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4190 [END] INSERT INTO myisam1 VALUES (1);
4191 include/assert.inc [No warning or error should be generated.]
4192 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4193 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4194 ROLLBACK;
4195 Warnings:
4196 Warning 1196 Some non-transactional changed tables couldn't be rolled back
4197 SET GTID_NEXT = 'AUTOMATIC';
4198 include/assert.inc [Both counters should be 0]
4199 ---- InnoDB and MyISAM in one statement inside trx, SQL_LOG_BIN=0 ----
4200 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
4201 # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=GTID
4202 SET GTID_NEXT = 'GTID';
4203 BEGIN;
4204 [START] INSERT INTO innodb VALUES (1);
4205 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4206 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4207 [END] INSERT INTO innodb VALUES (1);
4208 include/assert.inc [No warning or error should be generated.]
4209 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4210 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4211 ROLLBACK;
4212 Warnings:
4213 Warning 1196 Some non-transactional changed tables couldn't be rolled back
4214 SET GTID_NEXT = 'AUTOMATIC';
4215 include/assert.inc [Both counters should be 0]
4216 DROP TRIGGER trig;
4217 SET SQL_LOG_BIN = 1;
4218 DROP TABLE myisam1, myisam2, tmp_myisam1, tmp_myisam2, innodb;
4219 SET GLOBAL GTID_MODE = 0;
4220 ######## ENFORCE_GTID_CONSISTENCY=WARN GTID_MODE=OFF GTID_NEXT=AUTOMATIC ########
4221 CREATE TABLE myisam1 (a INT) ENGINE = MyISAM;
4222 CREATE TABLE myisam2 (a INT) ENGINE = MyISAM;
4223 CREATE TABLE innodb (a INT) ENGINE = InnoDB;
4224 ---- MyISAM followed by MyISAM, in one 'trx' ----
4225 # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=AUTOMATIC
4226 SET GTID_NEXT = 'AUTOMATIC';
4227 BEGIN; INSERT INTO myisam1 VALUES (1);
4228 [START] INSERT INTO myisam2 VALUES (1);
4229 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4230 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4231 [END] INSERT INTO myisam2 VALUES (1);
4232 include/assert.inc [No warning or error should be generated.]
4233 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4234 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4235 ROLLBACK;
4236 Warnings:
4237 Warning 1196 Some non-transactional changed tables couldn't be rolled back
4238 SET GTID_NEXT = 'AUTOMATIC';
4239 include/assert.inc [Both counters should be 0]
4240 ---- MyISAM and MyISAM in one statement ----
4241 CREATE TRIGGER trig BEFORE INSERT ON myisam1 FOR EACH ROW INSERT INTO myisam2 VALUES (1);
4242 # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=AUTOMATIC
4243 SET GTID_NEXT = 'AUTOMATIC';
4244 [START] INSERT INTO myisam2 VALUES (1);
4245 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4246 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4247 [END] INSERT INTO myisam2 VALUES (1);
4248 include/assert.inc [No warning or error should be generated.]
4249 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4250 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4251 ROLLBACK;
4252 SET GTID_NEXT = 'AUTOMATIC';
4253 include/assert.inc [Both counters should be 0]
4254 DROP TRIGGER trig;
4255 ---- MyISAM followed by InnoDB, in one 'trx' ----
4256 # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=AUTOMATIC
4257 SET GTID_NEXT = 'AUTOMATIC';
4258 BEGIN; INSERT INTO myisam1 VALUES (1);
4259 [START] INSERT INTO innodb VALUES (1);
4260 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4261 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4262 [END] INSERT INTO innodb VALUES (1);
4263 include/assert.inc [No warning or error should be generated.]
4264 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4265 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4266 ROLLBACK;
4267 Warnings:
4268 Warning 1196 Some non-transactional changed tables couldn't be rolled back
4269 SET GTID_NEXT = 'AUTOMATIC';
4270 include/assert.inc [Both counters should be 0]
4271 SET SESSION BINLOG_FORMAT = MIXED;
4272 Warnings:
4273 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
4274 ---- InnoDB followed by temp MyISAM in one trx, binlog_format=mix ----
4275 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
4276 # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=AUTOMATIC
4277 SET GTID_NEXT = 'AUTOMATIC';
4278 BEGIN; INSERT INTO innodb VALUES (1);
4279 [START] INSERT INTO tmp_myisam1 VALUES (1);
4280 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4281 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4282 [END] INSERT INTO tmp_myisam1 VALUES (1);
4283 include/assert.inc [No warning or error should be generated.]
4284 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4285 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4286 ROLLBACK;
4287 Warnings:
4288 Warning 1196 Some non-transactional changed tables couldn't be rolled back
4289 SET GTID_NEXT = 'AUTOMATIC';
4290 include/assert.inc [Both counters should be 0]
4291 DROP TEMPORARY TABLE tmp_myisam1;
4292 ---- InnoDB and temp MyISAM in one autocommit statement, binlog_format=mix ----
4293 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
4294 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
4295 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
4296 # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=AUTOMATIC
4297 SET GTID_NEXT = 'AUTOMATIC';
4298 [START] INSERT INTO innodb VALUES (1);
4299 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4300 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4301 [END] INSERT INTO innodb VALUES (1);
4302 include/assert.inc [No warning or error should be generated.]
4303 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4304 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4305 ROLLBACK;
4306 SET GTID_NEXT = 'AUTOMATIC';
4307 include/assert.inc [Both counters should be 0]
4308 DROP TRIGGER trig;
4309 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
4310 SET BINLOG_FORMAT = 'ROW';
4311 Warnings:
4312 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
4313 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
4314 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
4315 ---- InnoDB followed by temp MyISAM in one trx, binlog_format='row' ----
4316 # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=AUTOMATIC
4317 SET GTID_NEXT = 'AUTOMATIC';
4318 BEGIN; INSERT INTO innodb VALUES (1);
4319 [START] INSERT INTO tmp_myisam1 VALUES (1);
4320 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4321 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4322 [END] INSERT INTO tmp_myisam1 VALUES (1);
4323 include/assert.inc [No warning or error should be generated.]
4324 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4325 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4326 ROLLBACK;
4327 Warnings:
4328 Warning 1196 Some non-transactional changed tables couldn't be rolled back
4329 SET GTID_NEXT = 'AUTOMATIC';
4330 include/assert.inc [Both counters should be 0]
4331 ---- InnoDB and temp MyISAM in one statement, binlog_format='row' ----
4332 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
4333 # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=AUTOMATIC
4334 SET GTID_NEXT = 'AUTOMATIC';
4335 [START] INSERT INTO innodb VALUES (1);
4336 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4337 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4338 [END] INSERT INTO innodb VALUES (1);
4339 include/assert.inc [No warning or error should be generated.]
4340 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4341 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4342 ROLLBACK;
4343 SET GTID_NEXT = 'AUTOMATIC';
4344 include/assert.inc [Both counters should be 0]
4345 DROP TRIGGER trig;
4346 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
4347 SET BINLOG_FORMAT = #;
4348 Warnings:
4349 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
4350 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
4351 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
4352 SET SQL_LOG_BIN = 0;
4353 ---- InnoDB and MyISAM in one statement, SQL_LOG_BIN=0 ----
4354 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
4355 # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=AUTOMATIC
4356 SET GTID_NEXT = 'AUTOMATIC';
4357 [START] INSERT INTO innodb VALUES (1);
4358 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4359 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4360 [END] INSERT INTO innodb VALUES (1);
4361 include/assert.inc [No warning or error should be generated.]
4362 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4363 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4364 ROLLBACK;
4365 SET GTID_NEXT = 'AUTOMATIC';
4366 include/assert.inc [Both counters should be 0]
4367 DROP TRIGGER trig;
4368 ---- InnoDB followed by MyISAM, in one trx, SQL_LOG_BIN=0 ----
4369 # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=AUTOMATIC
4370 SET GTID_NEXT = 'AUTOMATIC';
4371 BEGIN; INSERT INTO innodb VALUES (1);
4372 [START] INSERT INTO myisam1 VALUES (1);
4373 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4374 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4375 [END] INSERT INTO myisam1 VALUES (1);
4376 include/assert.inc [No warning or error should be generated.]
4377 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4378 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4379 ROLLBACK;
4380 Warnings:
4381 Warning 1196 Some non-transactional changed tables couldn't be rolled back
4382 SET GTID_NEXT = 'AUTOMATIC';
4383 include/assert.inc [Both counters should be 0]
4384 ---- InnoDB and MyISAM in one statement inside trx, SQL_LOG_BIN=0 ----
4385 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
4386 # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=AUTOMATIC
4387 SET GTID_NEXT = 'AUTOMATIC';
4388 BEGIN;
4389 [START] INSERT INTO innodb VALUES (1);
4390 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4391 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4392 [END] INSERT INTO innodb VALUES (1);
4393 include/assert.inc [No warning or error should be generated.]
4394 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4395 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4396 ROLLBACK;
4397 Warnings:
4398 Warning 1196 Some non-transactional changed tables couldn't be rolled back
4399 SET GTID_NEXT = 'AUTOMATIC';
4400 include/assert.inc [Both counters should be 0]
4401 DROP TRIGGER trig;
4402 SET SQL_LOG_BIN = 1;
4403 DROP TABLE myisam1, myisam2, tmp_myisam1, tmp_myisam2, innodb;
4404 ######## ENFORCE_GTID_CONSISTENCY=WARN GTID_MODE=OFF GTID_NEXT=ANONYMOUS ########
4405 CREATE TABLE myisam1 (a INT) ENGINE = MyISAM;
4406 CREATE TABLE myisam2 (a INT) ENGINE = MyISAM;
4407 CREATE TABLE innodb (a INT) ENGINE = InnoDB;
4408 ---- MyISAM followed by MyISAM, in one 'trx' ----
4409 # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=ANONYMOUS
4410 SET GTID_NEXT = 'ANONYMOUS';
4411 BEGIN; INSERT INTO myisam1 VALUES (1);
4412 [START] INSERT INTO myisam2 VALUES (1);
4413 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4414 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4415 [END] INSERT INTO myisam2 VALUES (1);
4416 include/assert.inc [No warning or error should be generated.]
4417 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4418 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4419 ROLLBACK;
4420 Warnings:
4421 Warning 1196 Some non-transactional changed tables couldn't be rolled back
4422 SET GTID_NEXT = 'AUTOMATIC';
4423 include/assert.inc [Both counters should be 0]
4424 ---- MyISAM and MyISAM in one statement ----
4425 CREATE TRIGGER trig BEFORE INSERT ON myisam1 FOR EACH ROW INSERT INTO myisam2 VALUES (1);
4426 # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=ANONYMOUS
4427 SET GTID_NEXT = 'ANONYMOUS';
4428 [START] INSERT INTO myisam2 VALUES (1);
4429 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4430 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4431 [END] INSERT INTO myisam2 VALUES (1);
4432 include/assert.inc [No warning or error should be generated.]
4433 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4434 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4435 ROLLBACK;
4436 SET GTID_NEXT = 'AUTOMATIC';
4437 include/assert.inc [Both counters should be 0]
4438 DROP TRIGGER trig;
4439 ---- MyISAM followed by InnoDB, in one 'trx' ----
4440 # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=ANONYMOUS
4441 SET GTID_NEXT = 'ANONYMOUS';
4442 BEGIN; INSERT INTO myisam1 VALUES (1);
4443 [START] INSERT INTO innodb VALUES (1);
4444 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4445 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4446 [END] INSERT INTO innodb VALUES (1);
4447 include/assert.inc [No warning or error should be generated.]
4448 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4449 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4450 ROLLBACK;
4451 Warnings:
4452 Warning 1196 Some non-transactional changed tables couldn't be rolled back
4453 SET GTID_NEXT = 'AUTOMATIC';
4454 include/assert.inc [Both counters should be 0]
4455 SET SESSION BINLOG_FORMAT = MIXED;
4456 Warnings:
4457 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
4458 ---- InnoDB followed by temp MyISAM in one trx, binlog_format=mix ----
4459 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
4460 # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=ANONYMOUS
4461 SET GTID_NEXT = 'ANONYMOUS';
4462 BEGIN; INSERT INTO innodb VALUES (1);
4463 [START] INSERT INTO tmp_myisam1 VALUES (1);
4464 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4465 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4466 [END] INSERT INTO tmp_myisam1 VALUES (1);
4467 include/assert.inc [No warning or error should be generated.]
4468 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4469 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4470 ROLLBACK;
4471 Warnings:
4472 Warning 1196 Some non-transactional changed tables couldn't be rolled back
4473 SET GTID_NEXT = 'AUTOMATIC';
4474 include/assert.inc [Both counters should be 0]
4475 DROP TEMPORARY TABLE tmp_myisam1;
4476 ---- InnoDB and temp MyISAM in one autocommit statement, binlog_format=mix ----
4477 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
4478 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
4479 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
4480 # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=ANONYMOUS
4481 SET GTID_NEXT = 'ANONYMOUS';
4482 [START] INSERT INTO innodb VALUES (1);
4483 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4484 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4485 [END] INSERT INTO innodb VALUES (1);
4486 include/assert.inc [No warning or error should be generated.]
4487 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4488 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4489 ROLLBACK;
4490 SET GTID_NEXT = 'AUTOMATIC';
4491 include/assert.inc [Both counters should be 0]
4492 DROP TRIGGER trig;
4493 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
4494 SET BINLOG_FORMAT = 'ROW';
4495 Warnings:
4496 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
4497 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
4498 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
4499 ---- InnoDB followed by temp MyISAM in one trx, binlog_format='row' ----
4500 # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=ANONYMOUS
4501 SET GTID_NEXT = 'ANONYMOUS';
4502 BEGIN; INSERT INTO innodb VALUES (1);
4503 [START] INSERT INTO tmp_myisam1 VALUES (1);
4504 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4505 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4506 [END] INSERT INTO tmp_myisam1 VALUES (1);
4507 include/assert.inc [No warning or error should be generated.]
4508 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4509 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4510 ROLLBACK;
4511 Warnings:
4512 Warning 1196 Some non-transactional changed tables couldn't be rolled back
4513 SET GTID_NEXT = 'AUTOMATIC';
4514 include/assert.inc [Both counters should be 0]
4515 ---- InnoDB and temp MyISAM in one statement, binlog_format='row' ----
4516 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO tmp_myisam1 VALUES (1); INSERT INTO tmp_myisam2 VALUES (1); END;
4517 # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=ANONYMOUS
4518 SET GTID_NEXT = 'ANONYMOUS';
4519 [START] INSERT INTO innodb VALUES (1);
4520 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4521 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4522 [END] INSERT INTO innodb VALUES (1);
4523 include/assert.inc [No warning or error should be generated.]
4524 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4525 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4526 ROLLBACK;
4527 SET GTID_NEXT = 'AUTOMATIC';
4528 include/assert.inc [Both counters should be 0]
4529 DROP TRIGGER trig;
4530 DROP TEMPORARY TABLE tmp_myisam1, tmp_myisam2;
4531 SET BINLOG_FORMAT = #;
4532 Warnings:
4533 Warning 1287 '@@binlog_format' is deprecated and will be removed in a future release.
4534 CREATE TEMPORARY TABLE tmp_myisam1 (a INT) ENGINE = MyISAM;
4535 CREATE TEMPORARY TABLE tmp_myisam2 (a INT) ENGINE = MyISAM;
4536 SET SQL_LOG_BIN = 0;
4537 ---- InnoDB and MyISAM in one statement, SQL_LOG_BIN=0 ----
4538 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
4539 # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=ANONYMOUS
4540 SET GTID_NEXT = 'ANONYMOUS';
4541 [START] INSERT INTO innodb VALUES (1);
4542 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4543 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4544 [END] INSERT INTO innodb VALUES (1);
4545 include/assert.inc [No warning or error should be generated.]
4546 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4547 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4548 ROLLBACK;
4549 SET GTID_NEXT = 'AUTOMATIC';
4550 include/assert.inc [Both counters should be 0]
4551 DROP TRIGGER trig;
4552 ---- InnoDB followed by MyISAM, in one trx, SQL_LOG_BIN=0 ----
4553 # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=ANONYMOUS
4554 SET GTID_NEXT = 'ANONYMOUS';
4555 BEGIN; INSERT INTO innodb VALUES (1);
4556 [START] INSERT INTO myisam1 VALUES (1);
4557 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4558 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4559 [END] INSERT INTO myisam1 VALUES (1);
4560 include/assert.inc [No warning or error should be generated.]
4561 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4562 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4563 ROLLBACK;
4564 Warnings:
4565 Warning 1196 Some non-transactional changed tables couldn't be rolled back
4566 SET GTID_NEXT = 'AUTOMATIC';
4567 include/assert.inc [Both counters should be 0]
4568 ---- InnoDB and MyISAM in one statement inside trx, SQL_LOG_BIN=0 ----
4569 CREATE TRIGGER trig BEFORE INSERT ON innodb FOR EACH ROW BEGIN INSERT INTO myisam1 VALUES (1); INSERT INTO myisam2 VALUES (1); END;
4570 # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=ANONYMOUS
4571 SET GTID_NEXT = 'ANONYMOUS';
4572 BEGIN;
4573 [START] INSERT INTO innodb VALUES (1);
4574 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4575 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4576 [END] INSERT INTO innodb VALUES (1);
4577 include/assert.inc [No warning or error should be generated.]
4578 include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4579 include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0]
4580 ROLLBACK;
4581 Warnings:
4582 Warning 1196 Some non-transactional changed tables couldn't be rolled back
4583 SET GTID_NEXT = 'AUTOMATIC';
4584 include/assert.inc [Both counters should be 0]
4585 DROP TRIGGER trig;
4586 SET SQL_LOG_BIN = 1;
4587 DROP TABLE myisam1, myisam2, tmp_myisam1, tmp_myisam2, innodb;
4588 SET GLOBAL ENFORCE_GTID_CONSISTENCY = OFF;
4589 SET GLOBAL SQL_NOTES = @old_sql_notes;
4590 include/rpl_end.inc
4591 include/end_replace_gtid_combination.inc [gtid_mode=off/on -> binlog_direct_non_transactional_updates=0/1]