@@ -153,4 +153,97 @@ COUNT(DISTINCT MICROSECOND(set_time))
153
153
# Cleanup
154
154
SET GLOBAL max_join_size=DEFAULT, init_connect=DEFAULT;
155
155
RESET PERSIST;
156
+ #
157
+ # Bug #27489026: PERSIST_ONLY DOESN'T RESPECT DEFAULT INSTEAD COPIES GLOBAL VALUE
158
+ #
159
+ SELECT @@global.binlog_cache_size;
160
+ @@global.binlog_cache_size
161
+ 32768
162
+ SELECT @@global.disabled_storage_engines;
163
+ @@global.disabled_storage_engines
164
+
165
+ SELECT @@global.collation_database;
166
+ @@global.collation_database
167
+ utf8mb4_0900_ai_ci
168
+ SELECT @@global.innodb_flush_method;
169
+ @@global.innodb_flush_method
170
+ fsync
171
+ SELECT @@global.innodb_open_files;
172
+ @@global.innodb_open_files
173
+ 4000
174
+ SELECT @@global.optimizer_trace_offset;
175
+ @@global.optimizer_trace_offset
176
+ -1
177
+ SELECT @@global.optimizer_switch;
178
+ @@global.optimizer_switch
179
+ index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=on,index_condition_pushdown=on,mrr=on,mrr_cost_based=on,block_nested_loop=on,batched_key_access=off,materialization=on,semijoin=on,loosescan=on,firstmatch=on,duplicateweedout=on,subquery_materialization_cost_based=on,use_index_extensions=on,condition_fanout_filter=on,derived_merge=on,use_invisible_indexes=off
180
+ SELECT @@global.enforce_gtid_consistency;
181
+ @@global.enforce_gtid_consistency
182
+ OFF
183
+ SELECT @@global.sql_mode;
184
+ @@global.sql_mode
185
+ ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
186
+ SET @@global.binlog_cache_size= 4096;
187
+ SET @@persist_only.binlog_cache_size= default,
188
+ @@persist_only.collation_database= default,
189
+ @@persist_only.disabled_storage_engines= default,
190
+ @@persist_only.innodb_flush_method= default,
191
+ @@persist_only.innodb_open_files= default,
192
+ @@persist_only.optimizer_trace_offset= default,
193
+ @@persist_only.optimizer_switch= default,
194
+ @@persist_only.enforce_gtid_consistency= default,
195
+ @@persist_only.sql_mode= default;
196
+ SELECT * FROM performance_schema.persisted_variables ORDER BY 1;
197
+ VARIABLE_NAME VARIABLE_VALUE
198
+ binlog_cache_size 32768
199
+ collation_database utf8mb4_0900_ai_ci
200
+ disabled_storage_engines
201
+ enforce_gtid_consistency 0
202
+ innodb_flush_method 0
203
+ innodb_open_files 0
204
+ optimizer_switch index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=on,index_condition_pushdown=on,mrr=on,mrr_cost_based=on,block_nested_loop=on,batched_key_access=off,materialization=on,semijoin=on,loosescan=on,firstmatch=on,duplicateweedout=on,subquery_materialization_cost_based=on,use_index_extensions=on,condition_fanout_filter=on,derived_merge=on,use_invisible_indexes=off
205
+ optimizer_trace_offset -1
206
+ sql_mode ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
207
+ # Restart server
208
+ # restart
209
+ SELECT @@global.binlog_cache_size;
210
+ @@global.binlog_cache_size
211
+ 32768
212
+ SELECT @@global.disabled_storage_engines;
213
+ @@global.disabled_storage_engines
214
+
215
+ SELECT @@global.collation_database;
216
+ @@global.collation_database
217
+ utf8mb4_0900_ai_ci
218
+ SELECT @@global.innodb_flush_method;
219
+ @@global.innodb_flush_method
220
+ fsync
221
+ SELECT @@global.innodb_open_files;
222
+ @@global.innodb_open_files
223
+ 4000
224
+ SELECT @@global.optimizer_trace_offset;
225
+ @@global.optimizer_trace_offset
226
+ -1
227
+ SELECT @@global.optimizer_switch;
228
+ @@global.optimizer_switch
229
+ index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=on,index_condition_pushdown=on,mrr=on,mrr_cost_based=on,block_nested_loop=on,batched_key_access=off,materialization=on,semijoin=on,loosescan=on,firstmatch=on,duplicateweedout=on,subquery_materialization_cost_based=on,use_index_extensions=on,condition_fanout_filter=on,derived_merge=on,use_invisible_indexes=off
230
+ SELECT @@global.enforce_gtid_consistency;
231
+ @@global.enforce_gtid_consistency
232
+ OFF
233
+ SELECT @@global.sql_mode;
234
+ @@global.sql_mode
235
+ ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
236
+ SELECT * FROM performance_schema.persisted_variables ORDER BY 1;
237
+ VARIABLE_NAME VARIABLE_VALUE
238
+ binlog_cache_size 32768
239
+ collation_database utf8mb4_0900_ai_ci
240
+ disabled_storage_engines
241
+ enforce_gtid_consistency 0
242
+ innodb_flush_method 0
243
+ innodb_open_files 0
244
+ optimizer_switch index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=on,index_condition_pushdown=on,mrr=on,mrr_cost_based=on,block_nested_loop=on,batched_key_access=off,materialization=on,semijoin=on,loosescan=on,firstmatch=on,duplicateweedout=on,subquery_materialization_cost_based=on,use_index_extensions=on,condition_fanout_filter=on,derived_merge=on,use_invisible_indexes=off
245
+ optimizer_trace_offset -1
246
+ sql_mode ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
247
+ # Cleanup
248
+ RESET PERSIST;
156
249
# End of the 8.0 tests
0 commit comments