mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge branch '11.7' into 11.8
This commit is contained in:
@ -52,6 +52,7 @@
|
||||
#include "session_tracker.h"
|
||||
#include "backup.h"
|
||||
#include "xa.h"
|
||||
#include "scope.h"
|
||||
#include "ddl_log.h" /* DDL_LOG_STATE */
|
||||
#include "ha_handler_stats.h" // ha_handler_stats */
|
||||
|
||||
@ -473,6 +474,7 @@ public:
|
||||
bool invisible;
|
||||
bool without_overlaps;
|
||||
bool old;
|
||||
uint length;
|
||||
Lex_ident_column period;
|
||||
|
||||
Key(enum Keytype type_par, const LEX_CSTRING *name_arg,
|
||||
@ -480,7 +482,7 @@ public:
|
||||
:DDL_options(ddl_options),
|
||||
type(type_par), key_create_info(default_key_create_info),
|
||||
name(*name_arg), option_list(NULL), generated(generated_arg),
|
||||
invisible(false), without_overlaps(false), old(false)
|
||||
invisible(false), without_overlaps(false), old(false), length(0)
|
||||
{
|
||||
key_create_info.algorithm= algorithm_arg;
|
||||
}
|
||||
@ -491,7 +493,7 @@ public:
|
||||
:DDL_options(ddl_options),
|
||||
type(type_par), key_create_info(*key_info_arg), columns(*cols),
|
||||
name(*name_arg), option_list(create_opt), generated(generated_arg),
|
||||
invisible(false), without_overlaps(false), old(false)
|
||||
invisible(false), without_overlaps(false), old(false), length(0)
|
||||
{}
|
||||
Key(const Key &rhs, MEM_ROOT *mem_root);
|
||||
virtual ~Key() = default;
|
||||
@ -6248,7 +6250,8 @@ public:
|
||||
*/
|
||||
virtual int send_data(List<Item> &items)=0;
|
||||
virtual ~select_result_sink() = default;
|
||||
void reset(THD *thd_arg) { thd= thd_arg; }
|
||||
// Used in cursors to initialize and reset
|
||||
void reinit(THD *thd_arg) { thd= thd_arg; }
|
||||
};
|
||||
|
||||
class select_result_interceptor;
|
||||
@ -6322,15 +6325,11 @@ public:
|
||||
*/
|
||||
virtual bool check_simple_select() const;
|
||||
virtual void abort_result_set() {}
|
||||
/*
|
||||
Cleanup instance of this class for next execution of a prepared
|
||||
statement/stored procedure.
|
||||
*/
|
||||
virtual void cleanup();
|
||||
virtual void reset_for_next_ps_execution();
|
||||
void set_thd(THD *thd_arg) { thd= thd_arg; }
|
||||
void reset(THD *thd_arg)
|
||||
void reinit(THD *thd_arg)
|
||||
{
|
||||
select_result_sink::reset(thd_arg);
|
||||
select_result_sink::reinit(thd_arg);
|
||||
unit= NULL;
|
||||
}
|
||||
#ifdef EMBEDDED_LIBRARY
|
||||
@ -6436,9 +6435,9 @@ public:
|
||||
elsewhere. (this is used by ANALYZE $stmt feature).
|
||||
*/
|
||||
void disable_my_ok_calls() { suppress_my_ok= true; }
|
||||
void reset(THD *thd_arg)
|
||||
void reinit(THD *thd_arg)
|
||||
{
|
||||
select_result::reset(thd_arg);
|
||||
select_result::reinit(thd_arg);
|
||||
suppress_my_ok= false;
|
||||
}
|
||||
protected:
|
||||
@ -6492,7 +6491,7 @@ private:
|
||||
{}
|
||||
void reset(THD *thd_arg)
|
||||
{
|
||||
select_result_interceptor::reset(thd_arg);
|
||||
select_result_interceptor::reinit(thd_arg);
|
||||
spvar_list= NULL;
|
||||
field_count= 0;
|
||||
}
|
||||
@ -6534,7 +6533,7 @@ public:
|
||||
void reset(THD *thd_arg)
|
||||
{
|
||||
sp_cursor_statistics::reset();
|
||||
result.reset(thd_arg);
|
||||
result.reinit(thd_arg);
|
||||
server_side_cursor= NULL;
|
||||
}
|
||||
|
||||
@ -6561,7 +6560,7 @@ public:
|
||||
bool send_eof() override;
|
||||
bool check_simple_select() const override { return FALSE; }
|
||||
void abort_result_set() override;
|
||||
void cleanup() override;
|
||||
void reset_for_next_ps_execution() override;
|
||||
select_result_interceptor *result_interceptor() override { return NULL; }
|
||||
};
|
||||
|
||||
@ -6596,7 +6595,9 @@ public:
|
||||
{ path[0]=0; }
|
||||
~select_to_file();
|
||||
bool send_eof() override;
|
||||
void cleanup() override;
|
||||
void abort_result_set() override;
|
||||
void reset_for_next_ps_execution() override;
|
||||
bool free_recources();
|
||||
};
|
||||
|
||||
|
||||
@ -6673,7 +6674,7 @@ class select_insert :public select_result_interceptor {
|
||||
bool send_eof() override;
|
||||
void abort_result_set() override;
|
||||
/* not implemented: select_insert is never re-used in prepared statements */
|
||||
void cleanup() override;
|
||||
void reset_for_next_ps_execution() override;
|
||||
};
|
||||
|
||||
|
||||
@ -6900,7 +6901,7 @@ public:
|
||||
int delete_record();
|
||||
bool send_eof() override;
|
||||
virtual bool flush();
|
||||
void cleanup() override;
|
||||
void reset_for_next_ps_execution() override;
|
||||
virtual bool create_result_table(THD *thd, List<Item> *column_types,
|
||||
bool is_distinct, ulonglong options,
|
||||
const LEX_CSTRING *alias,
|
||||
@ -7075,9 +7076,10 @@ class select_union_recursive :public select_unit
|
||||
*/
|
||||
List<TABLE_LIST> rec_table_refs;
|
||||
/*
|
||||
The count of how many times cleanup() was called with cleaned==false
|
||||
for the unit specifying the recursive CTE for which this object was created
|
||||
or for the unit specifying a CTE that mutually recursive with this CTE.
|
||||
The count of how many times reset_for_next_ps_execution() was called with
|
||||
cleaned==false for the unit specifying the recursive CTE for which this
|
||||
object was created or for the unit specifying a CTE that mutually
|
||||
recursive with this CTE.
|
||||
*/
|
||||
uint cleanup_count;
|
||||
long row_counter;
|
||||
@ -7096,7 +7098,7 @@ class select_union_recursive :public select_unit
|
||||
bool create_table,
|
||||
bool keep_row_order,
|
||||
uint hidden) override;
|
||||
void cleanup() override;
|
||||
void reset_for_next_ps_execution() override;
|
||||
};
|
||||
|
||||
/**
|
||||
@ -7166,7 +7168,7 @@ public:
|
||||
{
|
||||
result->abort_result_set(); /* purecov: inspected */
|
||||
}
|
||||
void cleanup() override
|
||||
void reset_for_next_ps_execution() override
|
||||
{
|
||||
send_records= 0;
|
||||
}
|
||||
@ -7269,7 +7271,7 @@ public:
|
||||
uint hidden) override;
|
||||
bool init_result_table(ulonglong select_options);
|
||||
int send_data(List<Item> &items) override;
|
||||
void cleanup() override;
|
||||
void reset_for_next_ps_execution() override;
|
||||
ha_rows get_null_count_of_col(uint idx)
|
||||
{
|
||||
DBUG_ASSERT(idx < table->s->fields);
|
||||
@ -7302,7 +7304,7 @@ public:
|
||||
bool mx, bool all):
|
||||
select_subselect(thd_arg, item_arg), cache(0), fmax(mx), is_all(all)
|
||||
{}
|
||||
void cleanup() override;
|
||||
void reset_for_next_ps_execution() override;
|
||||
int send_data(List<Item> &items) override;
|
||||
bool cmp_real();
|
||||
bool cmp_int();
|
||||
@ -7737,7 +7739,7 @@ public:
|
||||
int send_data(List<Item> &items) override;
|
||||
bool send_eof() override;
|
||||
bool check_simple_select() const override;
|
||||
void cleanup() override;
|
||||
void reset_for_next_ps_execution() override;
|
||||
};
|
||||
|
||||
/* Bits in sql_command_flags */
|
||||
|
Reference in New Issue
Block a user