mirror of
https://github.com/MariaDB/server.git
synced 2026-10-23 18:49:29 +03:00
Fixup for: Capture more system variables in optimizer_context: TIMESTAMP, old_mode.
This commit is contained in:
@@ -16,6 +16,8 @@ index t1_idx_b (b),
|
||||
index t1_idx_ab (a, b)
|
||||
);
|
||||
insert into t1 select seq%2, seq%3 from seq_1_to_20;
|
||||
# Make the testcase reproducible:
|
||||
set timestamp= unix_timestamp('2026-05-31 10:20:30');
|
||||
select count(*) from t1;
|
||||
count(*)
|
||||
20
|
||||
@@ -66,6 +68,8 @@ SET join_buffer_size=262144;
|
||||
|
||||
SET join_cache_level=2;
|
||||
|
||||
SET old_mode='UTF8_IS_UTF8MB3';
|
||||
|
||||
SET optimizer_adjust_secondary_key_costs=0;
|
||||
|
||||
SET GLOBAL optimizer_disk_read_cost=10.240000;
|
||||
@@ -118,6 +122,10 @@ SET optimizer_use_condition_selectivity=4;
|
||||
|
||||
SET optimizer_where_cost=0.032000;
|
||||
|
||||
SET sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
|
||||
|
||||
SET timestamp=1780212030.000000;
|
||||
|
||||
|
||||
select count(*) from t1;
|
||||
count(*)
|
||||
@@ -167,6 +175,7 @@ SET GLOBAL temp_table.OPTIMIZER_ROWID_COMPARE_COST=0.002653;
|
||||
SET GLOBAL temp_table.OPTIMIZER_ROWID_COPY_COST=0.002653;
|
||||
SET join_buffer_size=262144;
|
||||
SET join_cache_level=2;
|
||||
SET old_mode='UTF8_IS_UTF8MB3';
|
||||
SET optimizer_adjust_secondary_key_costs=0;
|
||||
Warnings:
|
||||
Warning 4200 The setting 'optimizer_adjust_secondary_key_costs' is ignored. It only exists for compatibility with old installations and will be removed in a future release
|
||||
@@ -195,6 +204,8 @@ SET optimizer_trace='enabled=off';
|
||||
SET optimizer_trace_max_mem_size=1048576;
|
||||
SET optimizer_use_condition_selectivity=4;
|
||||
SET optimizer_where_cost=0.032000;
|
||||
SET sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
|
||||
SET timestamp=1780212030.000000;
|
||||
CREATE DATABASE IF NOT EXISTS db1;
|
||||
Warnings:
|
||||
Note 1007 Can't create database 'db1'; database exists
|
||||
|
||||
@@ -20,7 +20,8 @@ create table t1
|
||||
);
|
||||
|
||||
insert into t1 select seq%2, seq%3 from seq_1_to_20;
|
||||
|
||||
--echo # Make the testcase reproducible:
|
||||
set timestamp= unix_timestamp('2026-05-31 10:20:30');
|
||||
select count(*) from t1;
|
||||
|
||||
--source include/get_sys_vars_from_opt_ctx.inc
|
||||
|
||||
Reference in New Issue
Block a user