mariadb/sql
Dmitry Shulga 259e5243fa MDEV-24860: Incorrect behaviour of SET STATEMENT in case it is executed as a prepared statement
Running statements with SET STATEMENT FOR clause is handled incorrectly in
case the whole statement is executed in prepared statement mode.
For example, running of the following statement
  SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR CREATE TABLE t1 AS SELECT CONCAT('abc') AS c1;
results in different definition of the table t1 depending on whether
the statement is executed as a prepared or as a regular statement.

In first case the column c1 is defined as
  `c1` varchar(3) DEFAULT NULL
in the last case the column c1 is defined as
  `c1` varchar(3) NOT NULL

Different definition for the column c1 arise due to the fact that
a value of the data memeber Item_func_concat::maybe_null depends on
whether strict mode is on or off. Below is definition of the method
fix_fields() of the class Item_str_func that is base class for the
class Item_func_concat that is created on parsing the
SET STATEMENT FOR clause.

bool Item_str_func::fix_fields(THD *thd, Item **ref)
{
  bool res= Item_func::fix_fields(thd, ref);
  /*
    In Item_str_func::check_well_formed_result() we may set null_value
    flag on the same condition as in test() below.
  */
  maybe_null= maybe_null || thd->is_strict_mode();
  return res;
}

Although the clause SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
is parsed on PREPARE phase during processing of the prepared statement,
real setting of the sql_mode system variable is done on EXECUTION phase.
On the other hand, the method Item_str_func::fix_fields is called on PREPARE
phase. In result, thd->is_strict_mode() returns true during calling the method
Item_str_func::fix_fields(), the data member maybe_null is assigned the value
true and column c1 is defined as DEFAULT NULL.

To fix the issue the system variables listed in the SET STATEMENT FOR clause
are set at the beginning of handling the PREPARE phase just right before
calling  the function check_prepared_statement() and their original values
restored immediate after return from this function.

Additionally, to avoid code duplication the source code used in the function
mysql_execute_command for setting variables, specified by SET STATEMENT
clause, were extracted to the standalone functions
run_set_statement_if_requested(). This new function is called from
the function  mysql_execute_command() and the method
Prepared_statement::prepare().
2021-02-25 14:36:09 +07:00
..
share Ukrainian error text translations added. 2020-09-22 15:13:17 +02:00
add_errmsg
authors.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
bounded_queue.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
client_settings.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
CMakeLists.txt Fix cmake warning - custom command succeeds without creating own OUTPUT. 2020-05-29 12:28:34 +02:00
compat56.cc Merge branch '10.1' into 10.2 2020-08-02 11:05:29 +02:00
compat56.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
contributors.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
create_options.cc don't do a warning for bad table options in replication slave thread 2021-01-11 21:54:47 +01:00
create_options.h Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
custom_conf.h Update FSF Address 2019-05-11 21:29:06 +03:00
datadict.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
datadict.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
debug_sync.cc Merge 10.1 into 10.2 2020-09-03 09:10:03 +03:00
debug_sync.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
derror.cc Merge branch '10.1' into 10.2 2020-08-02 11:05:29 +02:00
derror.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
des_key_file.cc Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
des_key_file.h Update FSF Address 2019-05-11 21:29:06 +03:00
discover.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
discover.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
encryption.cc Code comment spellfixes 2020-07-22 23:18:12 +02:00
event_data_objects.cc Merge branch '10.1' into 10.2 2020-08-02 11:05:29 +02:00
event_data_objects.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
event_db_repository.cc Merge branch '10.1' into 10.2 2020-08-02 11:05:29 +02:00
event_db_repository.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
event_parse_data.cc Merge branch '10.1' into 10.2 2020-08-02 11:05:29 +02:00
event_parse_data.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
event_queue.cc Merge branch '10.1' into 10.2 2020-08-02 11:05:29 +02:00
event_queue.h Update FSF Address 2019-05-11 21:29:06 +03:00
event_scheduler.cc Merge branch '10.1' into 10.2 2020-05-02 08:44:17 +02:00
event_scheduler.h Update FSF Address 2019-05-11 21:29:06 +03:00
events.cc Merge branch '10.1' into 10.2 2020-08-02 11:05:29 +02:00
events.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
field.cc MDEV-17556 Assertion `bitmap_is_set_all(&table->s->all_set)' failed 2021-01-08 16:04:29 +10:00
field.h Revert "MDEV-24033: SIGSEGV in __memcmp_avx2_movbe from queue_insert | SIGSEGV in __memcmp_avx2_movbe from native_compare" 2020-12-10 08:45:20 +01:00
field_conv.cc Merge branch '10.1' into 10.2 2020-08-02 11:05:29 +02:00
filesort.cc Revert "MDEV-24033: SIGSEGV in __memcmp_avx2_movbe from queue_insert | SIGSEGV in __memcmp_avx2_movbe from native_compare" 2020-12-10 08:45:20 +01:00
filesort.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
filesort_utils.cc Merge 10.1 into 10.2 2020-07-14 15:10:59 +03:00
filesort_utils.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
gcalc_slicescan.cc Merge branch '10.1' into 10.2 2020-08-02 11:05:29 +02:00
gcalc_slicescan.h Merge branch '10.1' into 10.2 2020-08-02 11:05:29 +02:00
gcalc_tools.cc Merge branch '10.1' into 10.2 2020-08-02 11:05:29 +02:00
gcalc_tools.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
gen_lex_hash.cc gen_lex_hash: Omit deprecated register keywords 2019-07-23 15:23:27 +03:00
gen_lex_token.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
gen_win_tzname_data.ps1 MDEV-22419 update windows timezone data from using newest ICU source 2020-04-30 01:21:44 +02:00
group_by_handler.cc Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
group_by_handler.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
gstream.cc Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
gstream.h Update FSF Address 2019-05-11 21:29:06 +03:00
ha_partition.cc MDEV-17556 Assertion `bitmap_is_set_all(&table->s->all_set)' failed 2021-01-08 16:04:29 +10:00
ha_partition.h Merge branch '10.1' into 10.2 2020-08-02 11:05:29 +02:00
handler.cc MDEV-18428 Memory: If transactional=0 is specified in CREATE TABLE, it is not possible to ALTER TABLE 2021-01-11 21:54:47 +01:00
handler.h cleanup: void hton::abort_transaction() 2021-01-24 11:35:55 +01:00
hash_filo.cc Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
hash_filo.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
hostname.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
hostname.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
init.cc Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
init.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
innodb_priv.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
item.cc MDEV-23826: ORDER BY in view definition leads to wrong result with GROUP BY on query using view 2021-01-12 18:47:39 +05:30
item.h MDEV-23826: ORDER BY in view definition leads to wrong result with GROUP BY on query using view 2021-01-12 18:47:39 +05:30
item_buff.cc Merge branch '10.1' into 10.2 2020-08-02 11:05:29 +02:00
item_cmpfunc.cc ASAN heap-use-after-free in Item_exists_subselect::is_top_level_item 2021-01-29 11:18:06 +01:00
item_cmpfunc.h Item_func_like::walk() was ignoring escape_item 2020-12-19 11:44:42 +01:00
item_create.cc MDEV-18042 Server crashes upon adding a non-null date column under NO_ZERO_DATE with ALGORITHM=INPLACE 2020-07-31 17:38:41 +10:00
item_create.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
item_func.cc MDEV-22387: Do not violate __attribute__((nonnull)) 2020-11-02 14:19:21 +02:00
item_func.h MDEV-21082: isnan/isinf compilation errors, isfinite warnings on MacOS 2019-11-19 16:28:15 +03:00
item_geofunc.cc Fix GCC 10.2.0 -Og -fsanitize=undefined -Wmaybe-uninitialized 2020-09-23 12:27:56 +03:00
item_geofunc.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
item_inetfunc.cc Merge branch '10.1' into 10.2 2020-08-02 11:05:29 +02:00
item_inetfunc.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
item_jsonfunc.cc MDEV-20593 SIGSEGV in report_json_error_ex (on optimized builds). 2020-10-22 15:51:14 +04:00
item_jsonfunc.h MDEV-22976 CAST(JSON_EXTRACT() AS DECIMAL) does not handle boolean values 2020-06-22 15:43:53 +04:00
item_row.cc MDEV-17177 Crash in Item_func_in::cleanup() for SELECT executed via 2020-03-20 09:36:25 -07:00
item_row.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
item_strfunc.cc Merge branch '10.1' into 10.2 2020-08-02 11:05:29 +02:00
item_strfunc.h Merge 10.1 into 10.2 2020-09-22 15:21:43 +03:00
item_subselect.cc MDEV-23291: SUM column from a derived table returns invalid values 2021-02-16 11:53:13 +05:30
item_subselect.h MDEV-23291: SUM column from a derived table returns invalid values 2021-02-16 11:53:13 +05:30
item_sum.cc MDEV-4677 GROUP_CONCAT not showing any output with group_concat_max_len >= 4Gb 2020-12-10 08:45:20 +01:00
item_sum.h Merge branch '10.1' into 10.2 2020-08-02 11:05:29 +02:00
item_timefunc.cc cleanup: remove redundant ADDINTERVAL_PRECEDENCE 2020-10-23 15:53:41 +02:00
item_timefunc.h cleanup: remove redundant ADDINTERVAL_PRECEDENCE 2020-10-23 15:53:41 +02:00
item_windowfunc.cc MDEV-15180: server crashed with NTH_VALUE() 2020-08-06 18:01:00 +05:30
item_windowfunc.h MDEV-9911: NTILE must return an error when parameter is not stable 2020-07-28 06:35:32 +02:00
item_xmlfunc.cc Merge branch '10.1' into 10.2 2020-08-02 11:05:29 +02:00
item_xmlfunc.h Merge branch '10.1' into 10.2 2019-07-26 07:03:39 +02:00
key.cc MDEV-17556 Assertion `bitmap_is_set_all(&table->s->all_set)' failed 2021-01-08 16:04:29 +10:00
key.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
keycaches.cc MDEV-20778 UBSAN: call to function free_rpl_filter() through pointer to incorrect function type 2019-10-14 19:16:50 +03:00
keycaches.h MDEV-20778 UBSAN: call to function free_rpl_filter() through pointer to incorrect function type 2019-10-14 19:16:50 +03:00
lex.h Merge branch '10.1' into 10.2 2020-08-02 11:05:29 +02:00
lex_symbol.h Update FSF Address 2019-05-11 21:29:06 +03:00
lock.cc Merge branch '10.1' into 10.2 2020-08-02 11:05:29 +02:00
lock.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
log.cc MDEV-4633: multi_source.simple test fails sporadically 2020-11-12 13:04:39 +05:30
log.h MDEV-4633: multi_source.simple test fails sporadically 2020-11-12 13:04:39 +05:30
log_event.cc MDEV-23033: All slaves crash once in ~24 hours and loop restart with signal 11 2021-01-04 15:06:12 +05:30
log_event.h MDEV-16372 ER_BASE64_DECODE_ERROR upon replaying binary log via mysqlbinlog --verbose 2020-08-31 18:45:14 +03:00
log_event_old.cc MDEV-16372 ER_BASE64_DECODE_ERROR upon replaying binary log via mysqlbinlog --verbose 2020-08-31 18:45:14 +03:00
log_event_old.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
log_slow.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
main.cc Update FSF Address 2019-05-11 21:29:06 +03:00
mdl.cc MDEV-23851 BF-BF Conflict issue because of UK GAP locks 2021-01-18 08:09:06 +02:00
mdl.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
mem_root_array.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
message.h Update FSF Address 2019-05-11 21:29:06 +03:00
message.mc
message.rc
mf_iocache.cc imporve clang build 2019-06-25 13:21:36 +03:00
mf_iocache_encr.cc MDEV-22387: Do not violate __attribute__((nonnull)) 2020-11-02 14:19:21 +02:00
MSG00001.bin
multi_range_read.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
multi_range_read.h Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
my_apc.cc Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_apc.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_decimal.cc Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_decimal.h MDEV-23702 calculating(auto rounding) issue 2020-10-29 09:27:56 +01:00
my_json_writer.cc Merge branch '5.5' into 10.1 2019-06-12 22:54:46 +02:00
my_json_writer.h Merge branch '5.5' into 10.1 2019-06-12 22:54:46 +02:00
mysql_install_db.cc Merge 10.1 into 10.2 2020-07-02 06:05:13 +03:00
mysql_upgrade_service.cc Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
mysqld.cc MDEV-20717 : Plugin system variables and activation options can break "mysqld --wsrep_recover" 2021-01-28 12:48:19 +02:00
mysqld.h cleanup: remove slave background thread, use handle_manager thread instead 2021-01-24 11:35:55 +01:00
mysqld_suffix.h Update FSF Address 2019-05-11 21:29:06 +03:00
net_serv.cc Merge 10.1 into 10.2 2020-09-03 09:10:03 +03:00
nt_servc.cc
nt_servc.h
opt_index_cond_pushdown.cc Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
opt_range.cc MDEV-22251: get_key_scans_params: Conditional jump or move depends on uninitialised value 2021-01-28 20:46:13 +03:00
opt_range.h MDEV-21958 Query having many NOT-IN clauses running forever and causing available free memory to use completely 2020-05-27 15:56:40 +02:00
opt_range_mrr.cc Merge 10.1 into 10.2 2020-05-26 13:01:34 +03:00
opt_subselect.cc Fix GCC 10.2.0 -Og -fsanitize=undefined -Wmaybe-uninitialized 2020-09-23 12:27:56 +03:00
opt_subselect.h MDEV-19740: Fix GCC 9.2.1 -Wmaybe-uninitialized on AMD64 2019-09-27 10:43:23 +03:00
opt_sum.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
opt_table_elimination.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
parse_file.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
parse_file.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
partition_element.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
partition_info.cc MDEV-17556 Assertion `bitmap_is_set_all(&table->s->all_set)' failed 2021-01-08 16:04:29 +10:00
partition_info.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
password.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
plistsort.c imporve clang build 2019-06-25 13:21:36 +03:00
procedure.cc Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
procedure.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
protocol.cc MDEV-17556 Assertion `bitmap_is_set_all(&table->s->all_set)' failed 2021-01-08 16:04:29 +10:00
protocol.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
records.cc MDEV-17066: Bytes lost or Assertion `status_var.local_memory_used == 0 after DELETE with subquery with ROLLUP 2020-08-05 11:28:32 +05:30
records.h MDEV-17066: Bytes lost or Assertion `status_var.local_memory_used == 0 after DELETE with subquery with ROLLUP 2020-08-05 11:28:32 +05:30
repl_failsafe.cc Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
repl_failsafe.h Update FSF Address 2019-05-11 21:29:06 +03:00
replication.h Update FSF Address 2019-05-11 21:29:06 +03:00
rpl_constants.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
rpl_filter.cc Merge 10.1 into 10.2 2020-09-03 09:10:03 +03:00
rpl_filter.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
rpl_gtid.cc MDEV 15532 Assertion `!log->same_pk' failed in row_log_table_apply_delete 2020-11-30 22:21:43 +02:00
rpl_gtid.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
rpl_handler.cc Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
rpl_handler.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
rpl_injector.cc MDEV 15532 Assertion `!log->same_pk' failed in row_log_table_apply_delete 2020-11-30 22:21:43 +02:00
rpl_injector.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
rpl_mi.cc Merge 10.1 into 10.2 2019-07-09 13:22:22 +03:00
rpl_mi.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
rpl_parallel.cc MDEV-8134: The relay-log is not flushed after the slave-relay-log.999999 showed 2021-01-21 13:00:02 +05:30
rpl_parallel.h
rpl_record.cc Fix -Wunused for CMAKE_BUILD_TYPE=RelWithDebInfo 2019-09-30 12:49:53 +03:00
rpl_record.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
rpl_record_old.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
rpl_record_old.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
rpl_reporting.cc Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
rpl_reporting.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
rpl_rli.cc MDEV-8134: The relay-log is not flushed after the slave-relay-log.999999 showed 2021-01-21 13:00:02 +05:30
rpl_rli.h MDEV-15152 Optimistic parallel slave doesnt cope well with START SLAVE UNTIL 2020-05-26 18:49:43 +03:00
rpl_tblmap.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
rpl_tblmap.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
rpl_utility.cc MDEV-19925: Column ... cannot be converted from type 'varchar(20)' to type 'varchar(20)' 2019-08-27 13:05:04 +05:30
rpl_utility.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
scheduler.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
scheduler.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
session_tracker.cc MDEV-22524 SIGABRT in safe_mutex_unlock with 2020-10-27 16:44:11 +04:00
session_tracker.h
set_var.cc Merge 10.1 into 10.2 2020-06-01 09:33:03 +03:00
set_var.h Merge 10.1 into 10.2 2020-06-01 09:33:03 +03:00
signal_handler.cc Merge 10.1 into 10.2 2020-07-01 12:03:55 +03:00
slave.cc cleanup: remove slave background thread, use handle_manager thread instead 2021-01-24 11:35:55 +01:00
slave.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sp.cc Merge 10.1 into 10.2 2020-07-14 15:10:59 +03:00
sp.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sp_cache.cc MDEV-21341: Fix UBSAN failures: Issue Six 2020-01-14 18:15:32 +03:00
sp_cache.h Update FSF Address 2019-05-11 21:29:06 +03:00
sp_head.cc MDEV 15532 Assertion `!log->same_pk' failed in row_log_table_apply_delete 2020-11-30 22:21:43 +02:00
sp_head.h Merge branch '10.1' into 10.2 2020-01-17 00:24:17 +03:00
sp_pcontext.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sp_pcontext.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sp_rcontext.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sp_rcontext.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
spatial.cc MDEV-19723 Assertion je->state == JST_KEY' failed while SELECT ST_GEOMFROMGEOJSON() and Assertion !mysql_bin_log.is_open() || thd.is_current_stmt_binlog_format_row()' 2021-01-19 15:29:03 +04:00
spatial.h MDEV-14057 InnoDB GIS tests fail. 2020-03-18 13:55:21 +04:00
sql_acl.cc MDEV-22966 Server crashes or hangs with SET ROLE when started with skip-grant-tables 2021-01-11 21:54:47 +01:00
sql_acl.h Revert "[MDEV-7978] add show create user" 2020-09-24 13:58:29 +10:00
sql_admin.cc MDEV 15532 Assertion `!log->same_pk' failed in row_log_table_apply_delete 2020-11-30 22:21:43 +02:00
sql_admin.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
sql_alter.cc Merge 10.1 into 10.2 2019-06-12 10:30:01 +03:00
sql_alter.h Merge 10.1 into 10.2 2019-06-12 10:30:01 +03:00
sql_analyse.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_analyse.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
sql_analyze_stmt.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_analyze_stmt.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_array.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_audit.cc Merge 10.1 into 10.2 2019-06-23 20:33:13 +03:00
sql_audit.h MDE-21369 rpl.rpl_timezone fails with valgrind: Use of uninitialised value. 2019-12-21 13:46:33 +04:00
sql_base.cc MDEV-23033: All slaves crash once in ~24 hours and loop restart with signal 11 2021-01-04 15:06:12 +05:30
sql_base.h Merge branch '10.1' into 10.2 2019-06-13 16:42:21 +02:00
sql_basic_types.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_binlog.cc Merge 10.1 into 10.2 2020-05-19 10:42:59 +03:00
sql_binlog.h Update FSF Address 2019-05-11 21:29:06 +03:00
sql_bitmap.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
sql_bootstrap.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_bootstrap.h Update FSF address 2019-05-11 19:25:02 +03:00
sql_builtin.cc.in Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
sql_cache.cc MDEV-4677 GROUP_CONCAT not showing any output with group_concat_max_len >= 4Gb 2020-12-10 08:45:20 +01:00
sql_cache.h MDEV-4677 GROUP_CONCAT not showing any output with group_concat_max_len >= 4Gb 2020-12-10 08:45:20 +01:00
sql_callback.h Update FSF Address 2019-05-11 21:29:06 +03:00
sql_class.cc MDEV-24872 : galera.galera_insert_multi MTR failed: crash with SIGABRT 2021-02-17 10:28:37 +02:00
sql_class.h cleanup: copy RAII helpers from 10.5, cleanup test 2021-01-11 21:54:47 +01:00
sql_client.cc Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
sql_cmd.h Revert "[MDEV-7978] add show create user" 2020-09-24 13:58:29 +10:00
sql_connect.cc MDEV-17852 Altered connection limits for user have no effect 2021-01-11 21:54:47 +01:00
sql_connect.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_const.h Merge 10.1 into 10.2 2019-05-28 15:56:24 +03:00
sql_crypt.cc Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
sql_crypt.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
sql_cte.cc MDEV-20751 Permission Issue With Nested CTEs 2020-12-17 13:44:06 -08:00
sql_cte.h MDEV-17154 Multiple selects from parametrized CTE fails with syntax error 2018-09-14 18:13:16 -07:00
sql_cursor.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_cursor.h Update FSF Address 2019-05-11 21:29:06 +03:00
sql_db.cc imporve clang build 2019-06-25 13:21:36 +03:00
sql_db.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
sql_delete.cc Merge branch '10.1' into 10.2 2019-07-26 07:03:39 +02:00
sql_delete.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
sql_derived.cc MDEV-24346 valgrind error in main.precedence 2020-12-19 11:44:42 +01:00
sql_derived.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_digest.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_digest.h Update FSF address 2019-05-11 19:25:02 +03:00
sql_digest_stream.h Update FSF address 2019-05-11 19:25:02 +03:00
sql_do.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_do.h Update FSF Address 2019-05-11 21:29:06 +03:00
sql_error.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_error.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_explain.cc Merge branch '10.1' into 10.2 2019-06-13 16:42:21 +02:00
sql_explain.h MDEV-19714: JOIN::pseudo_bits_cond is not visible in EXPLAIN FORMAT=JSON 2019-06-08 02:28:29 +03:00
sql_expression_cache.cc Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
sql_expression_cache.h Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
sql_get_diagnostics.cc Update FSF address 2019-05-11 19:25:02 +03:00
sql_get_diagnostics.h Update FSF address 2019-05-11 19:25:02 +03:00
sql_handler.cc MDEV-17556 Assertion `bitmap_is_set_all(&table->s->all_set)' failed 2021-01-08 16:04:29 +10:00
sql_handler.h Update FSF Address 2019-05-11 21:29:06 +03:00
sql_help.cc MDEV-22422: Assertion `! is_set()' failed in Diagnostics_area::set_eof_status 2020-12-15 13:00:24 +05:30
sql_help.h Update FSF Address 2019-05-11 21:29:06 +03:00
sql_hset.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_insert.cc MDEV 15532 Assertion `!log->same_pk' failed in row_log_table_apply_delete 2020-11-30 22:21:43 +02:00
sql_insert.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
sql_join_cache.cc MDEV-22387: Do not violate __attribute__((nonnull)) 2020-11-02 14:19:21 +02:00
sql_join_cache.h Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
sql_lex.cc MDEV-16940 Server crashes in unsafe_key_update upon attempt to update view 2021-01-19 08:04:02 -08:00
sql_lex.h MDEV-22741: *SAN: ERROR: AddressSanitizer: use-after-poison on address in instrings/strmake.c:36 from change_master (on optimized builds) 2021-02-03 12:18:29 +05:30
sql_lifo_buffer.h Update FSF address 2019-05-10 20:52:00 +03:00
sql_list.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_list.h MDEV-19740: Fix C++11 violations caught by GCC 9.2.1 2019-10-14 16:37:41 +03:00
sql_load.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_load.h Update FSF Address 2019-05-11 21:29:06 +03:00
sql_locale.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_locale.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_manager.cc cleanup: fix and generalize handle_manager thread 2021-01-24 11:35:55 +01:00
sql_manager.h cleanup: fix and generalize handle_manager thread 2021-01-24 11:35:55 +01:00
sql_mode.cc MDEV-18156 Assertion 0' failed or btr_validate_index(index, 0, false)' in row_upd_sec_index_entry or error code 126: Index is corrupted upon DELETE with PAD_CHAR_TO_FULL_LENGTH 2019-09-03 05:34:53 +04:00
sql_mode.h MDEV-18156 Assertion 0' failed or btr_validate_index(index, 0, false)' in row_upd_sec_index_entry or error code 126: Index is corrupted upon DELETE with PAD_CHAR_TO_FULL_LENGTH 2019-09-03 05:34:53 +04:00
sql_parse.cc MDEV-24860: Incorrect behaviour of SET STATEMENT in case it is executed as a prepared statement 2021-02-25 14:36:09 +07:00
sql_parse.h MDEV-24860: Incorrect behaviour of SET STATEMENT in case it is executed as a prepared statement 2021-02-25 14:36:09 +07:00
sql_partition.cc MDEV-19751 Wrong partitioning by KEY() after primary key dropped 2020-05-26 11:43:43 +03:00
sql_partition.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_partition_admin.cc Fix -Wunused for CMAKE_BUILD_TYPE=RelWithDebInfo 2019-09-30 12:49:53 +03:00
sql_partition_admin.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
sql_plist.h MDEV-17167 - InnoDB: Failing assertion: table->get_ref_count() == 0 upon 2019-05-14 15:23:09 +03:00
sql_plugin.cc MDEV-21258: Can't uninstall plugin if the library file doesn't exist 2020-07-29 12:34:53 +02:00
sql_plugin.h MDEV-17251 SHOW STATUS unnecessary calls calc_sum_of_all_status 2021-01-11 21:54:47 +01:00
sql_plugin_compat.h Update FSF Address 2019-05-11 21:29:06 +03:00
sql_plugin_services.ic MDEV-23101 : SIGSEGV in lock_rec_unlock() when Galera is enabled 2020-09-10 13:18:12 +03:00
sql_prepare.cc MDEV-24860: Incorrect behaviour of SET STATEMENT in case it is executed as a prepared statement 2021-02-25 14:36:09 +07:00
sql_prepare.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_priv.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_profile.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_profile.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_reload.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_reload.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
sql_rename.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_rename.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
sql_repl.cc MDEV-8134: The relay-log is not flushed after the slave-relay-log.999999 showed 2021-01-21 13:00:02 +05:30
sql_repl.h MDEV-8134: The relay-log is not flushed after the slave-relay-log.999999 showed 2021-01-21 13:00:02 +05:30
sql_select.cc MDEV-23449: alias do not exist and a query do not report an error 2021-01-31 19:55:07 +05:30
sql_select.h MDEV-17556 Assertion `bitmap_is_set_all(&table->s->all_set)' failed 2021-01-08 16:04:29 +10:00
sql_servers.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_servers.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
sql_show.cc MDEV-24179: Assertion `m_status == DA_ERROR || m_status == DA_OK || 2021-01-19 16:16:03 +05:30
sql_show.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_signal.cc Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
sql_signal.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
sql_sort.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_state.c Update FSF Address 2019-05-11 21:29:06 +03:00
sql_statistics.cc cleanup: stat tables 2021-02-22 19:27:12 +01:00
sql_statistics.h MDEV-19474: Histogram statistics are used even with optimizer_use_condition_selectivity=3 2021-02-16 11:53:13 +05:30
sql_string.cc MDEV-22387: Do not violate __attribute__((nonnull)) 2020-11-02 14:19:21 +02:00
sql_string.h Merge 10.1 into 10.2 2020-09-03 09:10:03 +03:00
sql_table.cc MDEV-18428 Memory: If transactional=0 is specified in CREATE TABLE, it is not possible to ALTER TABLE 2021-01-11 21:54:47 +01:00
sql_table.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_tablespace.cc Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
sql_tablespace.h Update FSF Address 2019-05-11 21:29:06 +03:00
sql_test.cc MDEV-17251 SHOW STATUS unnecessary calls calc_sum_of_all_status 2021-01-11 21:54:47 +01:00
sql_test.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_time.cc Fix GCC 10.2.0 -Og -Wmaybe-uninitialized 2020-08-11 15:58:16 +03:00
sql_time.h MDEV-18042 Server crashes upon adding a non-null date column under NO_ZERO_DATE with ALGORITHM=INPLACE 2020-07-31 17:38:41 +10:00
sql_trigger.cc Merge 10.1 into 10.2 2020-06-05 18:32:37 +02:00
sql_trigger.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_truncate.cc MDEV-17167 - InnoDB: Failing assertion: table->get_ref_count() == 0 upon 2019-05-14 15:23:09 +03:00
sql_truncate.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
sql_type.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_type.h Revert "MDEV-24033: SIGSEGV in __memcmp_avx2_movbe from queue_insert | SIGSEGV in __memcmp_avx2_movbe from native_compare" 2020-12-10 08:45:20 +01:00
sql_type_int.h MDEV-21977 main.func_math fails due to undefined behaviour 2020-03-20 15:24:06 +04:00
sql_udf.cc MDEV-23327: followup 2020-10-20 12:01:37 +02:00
sql_udf.h MDEV-23327 Can't uninstall UDF if the implementation library file doesn't exist 2020-10-19 15:15:04 +02:00
sql_union.cc MDEV-23406 Signal 8 in maria_create after recursive cte query 2020-12-16 09:13:24 -08:00
sql_union.h Update FSF Address 2019-05-11 21:29:06 +03:00
sql_update.cc MDEV-16940 Server crashes in unsafe_key_update upon attempt to update view 2021-01-19 08:04:02 -08:00
sql_update.h Update FSF Address 2019-05-11 21:29:06 +03:00
sql_view.cc MDEV-22781 CREATE VIEW containing WITH clause Signal 11 2020-12-07 09:26:40 -08:00
sql_view.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_window.cc MDEV-22463: Element_type &Bounds_checked_array<Item *>::operator[](size_t) [Element_type = Item *]: Assertion `n < m_size' failed. 2020-07-13 22:04:54 +05:30
sql_window.h MDEV-12779 Oracle/DB2 Compatibility Implicit Ordering for ROW_NUMBER OVER 2018-11-01 21:15:55 +02:00
sql_yacc.yy don't allow KILL QUERY ID USER xxx 2021-01-24 11:35:55 +01:00
strfunc.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
strfunc.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
structs.h MDEV-11172: EXPLAIN shows non-sensical value for key_len with type=index 2021-01-30 14:41:43 +05:30
sys_vars.cc make @@wsrep_provider and @@wsrep_notify_cmd read-only 2021-02-18 19:03:01 +01:00
sys_vars.ic Merge branch '10.1' into 10.2 2020-10-28 10:56:38 +01:00
sys_vars_shared.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
table.cc MDEV-11172: EXPLAIN shows non-sensical value for key_len with type=index 2021-01-30 14:41:43 +05:30
table.h MDEV-11172: EXPLAIN shows non-sensical value for key_len with type=index 2021-01-30 14:41:43 +05:30
table_cache.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
table_cache.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
temporary_tables.cc Fixed deadlock with LOCK TABLES and ALTER TABLE 2020-05-23 14:58:33 +03:00
thr_malloc.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
thr_malloc.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
threadpool.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
threadpool_common.cc MDEV-23879 server hangs with threadpool, compression, and client pipelining 2020-10-03 00:24:53 +02:00
threadpool_generic.cc MDEV-23378 - fix an alleged memory "leak" in threadpool. 2020-08-10 18:03:05 +00:00
threadpool_win.cc MDEV-20206 : Crash inside timer_callback()[threadpool_win.cc:419] 2019-09-09 13:52:30 +02:00
transaction.cc MDEV 15532 Assertion `!log->same_pk' failed in row_log_table_apply_delete 2020-11-30 22:21:43 +02:00
transaction.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
tzfile.h Update FSF Address 2019-05-11 21:29:06 +03:00
tztime.cc Merge 10.1 into 10.2 2020-08-20 06:00:36 +03:00
tztime.h Update FSF Address 2019-05-11 21:29:06 +03:00
udf_example.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
udf_example.def
uniques.cc Merge branch '10.1' into 10.2 2020-06-11 22:35:30 +03:00
uniques.h Fix wrong merge of commit d218d1aa49 2020-06-12 10:55:53 +03:00
unireg.cc MDEV-18428 Memory: If transactional=0 is specified in CREATE TABLE, it is not possible to ALTER TABLE 2021-01-11 21:54:47 +01:00
unireg.h MDEV-22387: Do not violate __attribute__((nonnull)) 2020-11-02 14:19:21 +02:00
win_tzname_data.h MDEV-22419 update windows timezone data from using newest ICU source 2020-04-30 01:21:44 +02:00
winservice.c Fix compile warning 2020-07-15 09:49:48 +02:00
winservice.h Update FSF address 2019-05-10 20:52:00 +03:00
wsrep_applier.cc MDEV 15532 Assertion `!log->same_pk' failed in row_log_table_apply_delete 2020-11-30 22:21:43 +02:00
wsrep_applier.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
wsrep_binlog.cc MDEV-22021: Galera database could get inconsistent with rollback to savepoint 2020-03-31 09:59:37 +03:00
wsrep_binlog.h MDEV-22021: Galera database could get inconsistent with rollback to savepoint 2020-03-31 09:59:37 +03:00
wsrep_check_opts.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
wsrep_dummy.cc MDEV-23101 : SIGSEGV in lock_rec_unlock() when Galera is enabled 2020-09-10 13:18:12 +03:00
wsrep_hton.cc Merge 10.1 into 10.2 2020-06-05 18:32:37 +02:00
wsrep_mysqld.cc MDEV-23328 Server hang due to Galera lock conflict resolution 2021-01-24 11:35:55 +01:00
wsrep_mysqld.h MDEV-23894 UBSAN: several call to function show_binlog_vars(THD*, st_mysql_show_var*, char*) through pointer to incorrect function type 'int (*)(THD *, st_mysql_show_var *, void *, system_status_var *, enum_var_type) errors 2020-10-06 13:51:06 +03:00
wsrep_mysqld_c.h Update FSF address 2019-05-11 19:25:02 +03:00
wsrep_notify.cc don't allocate 64K on the stack 2021-02-18 12:16:11 +01:00
wsrep_priv.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
wsrep_sst.cc MDEV-19950: Galera test failure on galera_ssl_upgrade 2021-02-11 13:44:01 +01:00
wsrep_sst.h MDEV-22543: Remove orphan declaration of wsrep_is_sst_progress 2020-08-25 15:23:29 +03:00
wsrep_thd.cc MDEV-23851 BF-BF Conflict issue because of UK GAP locks 2021-01-18 08:09:06 +02:00
wsrep_thd.h MDEV-23101 : SIGSEGV in lock_rec_unlock() when Galera is enabled 2020-09-10 13:18:12 +03:00
wsrep_utils.cc MDEV-23483: Set Galera SST thd as system thread 2020-08-25 12:12:44 +03:00
wsrep_utils.h MDEV-23483: Set Galera SST thd as system thread 2020-08-25 12:12:44 +03:00
wsrep_var.cc MDEV-23894 UBSAN: several call to function show_binlog_vars(THD*, st_mysql_show_var*, char*) through pointer to incorrect function type 'int (*)(THD *, st_mysql_show_var *, void *, system_status_var *, enum_var_type) errors 2020-10-06 13:51:06 +03:00
wsrep_var.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
wsrep_xid.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
wsrep_xid.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00