mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-31003: Second execution for ps-protocol
This patch adds for "--ps-protocol" second execution of queries "SELECT". Also in this patch it is added ability to disable/enable (--disable_ps2_protocol/--enable_ps2_protocol) second execution for "--ps-prototocol" in testcases.
This commit is contained in:
@ -9,7 +9,9 @@ set global query_cache_size=1355776;
|
||||
|
||||
create table t1 (a int not null);
|
||||
insert into t1 values (1),(2),(3);
|
||||
--disable_ps2_protocol
|
||||
select * from t1;
|
||||
--enable_ps2_protocol
|
||||
select statement_schema, statement_text, result_blocks_count, result_blocks_size from information_schema.query_cache_info;
|
||||
|
||||
select @@time_zone into @time_zone;
|
||||
@ -25,7 +27,9 @@ select @@group_concat_max_len into @group_concat_max_len;
|
||||
select Name into @new_time_zone from mysql.time_zone_name limit 1;
|
||||
set time_zone=@new_time_zone,default_week_format=4,character_set_client='binary',character_set_results='utf32',collation_connection='utf32_bin',sql_mode='STRICT_ALL_TABLES',div_precision_increment=7,lc_time_names='ar_SD',autocommit=0, group_concat_max_len=513, max_sort_length=1011;
|
||||
--disable_result_log
|
||||
--disable_ps2_protocol
|
||||
select * from t1;
|
||||
--enable_ps2_protocol
|
||||
--enable_result_log
|
||||
set time_zone= @time_zone, default_week_format= @default_week_format, character_set_client= @character_set_client,character_set_results= @character_set_results, sql_mode= @sql_mode, div_precision_increment= @div_precision_increment, lc_time_names= @lc_time_names, autocommit= @autocommit, group_concat_max_len= @group_concat_max_len, max_sort_length= @max_sort_length;
|
||||
|
||||
|
Reference in New Issue
Block a user