mariadb/sql
Dmitry Shulga bdba1d46bb MDEV-19631: Assertion `0' failed in st_select_lex_unit::optimize or different plan upon 2nd execution of PS with EXPLAIN
Second execution of a prepared statement for a query containing a constant
subquery with union that can be optimized away, could result in server abnormal
termination for debug build or incorrect result set output for release build.

For example, the following test case crashes a server built with debug on second
run of the statement EXECUTE stmt
  CREATE TABLE t1 (a INT);
  PREPARE stmt FROM 'EXPLAIN SELECT * FROM t1 HAVING 6 IN ( SELECT 6 UNION SELECT 5 )';
  EXECUTE stmt;
  EXECUTE stmt;

The reason for incorrect result set output or abnormal server termination
is careless working with the data member fake_select_lex->options inside
the function mysql_explain_union(). Once the flag SELECT_DESCRIBE is set in
the data member fake_select_lex->option before calling the methods
  SELECT_LEX_UNIT::prepare/SELECT_LEX_UNIT::execute
the original value of the option is no longer restored.
As a consequence, next time the prepared statement is re-executed we have
the fake_select_lex with the flag SELECT_DESCRIBE set in the data member
fake_select_lex->option, that is incorrect. In result, the method
  Item_subselect::assigned()
is not invoked during evaluation of a constant condition (constant subquery
with union) that being performed on OPTIMIZE phase of query handling.

This leads to the fact that records in the temporary table are not deleted
before calling
  table->file->ha_enable_indexes(HA_KEY_SWITCH_ALL)
in the method st_select_lex_unit::optimize().
In result table->file->ha_enable_indexes(HA_KEY_SWITCH_ALL) returns error
and DBUG_ASSERT(0) is fired.

Stack trace to the line where the error generated on re-enabling indexes
for next subselect iteration is below:
st_select_lex_unit::optimize (at sql_union.cc:954)
  handler::ha_enable_indexes (at handler.cc:4338)
    ha_heap::enable_indexes (at ha_heap.cc:519)
      heap_enable_indexes (at hp_clear.c:164)

The code snippet to clarify raising the error is also listed:
int heap_enable_indexes(HP_INFO *info)
{
  int error= 0;
  HP_SHARE *share= info->s;

  if (share->data_length || share->index_length)
    error= HA_ERR_CRASHED; <<== set error the value HA_ERR_CRASHED
                                since share->data_length != 0

To fix this issue the original value of unit->fake_select_lex->options
has to be saved before setting the flag SELECT_DESCRIBE and restored
on return from invocation of SELECT_LEX_UNIT::prepare/SELECT_LEX_UNIT::execute
2022-03-30 16:11:18 +07:00
..
share MDEV-23915 ER_KILL_DENIED_ERROR not passed a thread id (part 2) 2022-03-16 09:37:45 +11: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 MDEV-19129: Fixed configure for Xcode, CMake generate 2021-12-07 20:29:25 +01: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 Update contributors 2022-03-23 10:47:27 +11: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 MDEV-24807:A possibility for double free in dtor of Event_queue_element_for_exec in the case of OOM 2021-04-20 23:19:25 +03:00
event_data_objects.h Fixup: Event_queue_element_for_exec initializer list not supported on gcc-4.1 2021-04-21 11:21:57 +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 MDEV-24807:A possibility for double free in dtor of Event_queue_element_for_exec in the case of OOM 2021-04-20 23:19:25 +03:00
event_queue.h Update FSF Address 2019-05-11 21:29:06 +03:00
event_scheduler.cc eventscheduler mismatch of my_{malloc,free}, delete 2021-06-15 12:35:57 +10: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-26129 Bad results with join comparing case insensitive VARCHAR/ENUM/SET expression to a _bin ENUM column 2022-01-18 15:32:01 +04:00
field.h MDEV-26129 Bad results with join comparing case insensitive VARCHAR/ENUM/SET expression to a _bin ENUM column 2022-01-18 15:32:01 +04:00
field_conv.cc Merge branch '10.1' into 10.2 2020-08-02 11:05:29 +02:00
filesort.cc MDEV-18734 ASAN heap-use-after-free upon sorting by blob column from partitioned table 2021-08-05 23:48:02 +03: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 Update timezone data on Windows 2021-04-22 15:51:55 +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-18734 ASAN heap-use-after-free upon sorting by blob column from partitioned table 2021-08-05 23:48:02 +03:00
ha_partition.h MDEV-18734 ASAN heap-use-after-free upon sorting by blob column from partitioned table 2021-08-05 23:48:02 +03: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 Fix gcc-12 -O2 -Warray-bounds 2022-03-17 10:20:07 +02: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-25631 Crash executing query with VIEW, aggregate and subquery 2022-01-10 09:12:17 -08:00
item.h MDEV-18284: JSON casting using JSON_COMPACT doesn't always work with values from subqueries 2022-01-19 09:29:02 +01:00
item_buff.cc Merge branch '10.1' into 10.2 2020-08-02 11:05:29 +02:00
item_cmpfunc.cc MDEV-25610 Assertion `escape != -1' failed in Item_func_like::val_int 2021-11-08 08:16:48 +04:00
item_cmpfunc.h Item_func_like::walk() was ignoring escape_item 2020-12-19 11:44:42 +01:00
item_create.cc MDEV-25129 Add KEYWORDS view to the INFORMATION_SCHEMA 2021-06-29 16:15:24 +03:00
item_create.h MDEV-25129 Add KEYWORDS view to the INFORMATION_SCHEMA 2021-06-29 16:15:24 +03:00
item_func.cc MDEV-27968 GCC 12 -Og -Wmaybe-uninitialized in udf_handler::fix_fields() 2022-03-01 10:31:26 +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 MDEV-13467: Feature request: Support for ST_Distance_Sphere() 2021-03-27 21:02:19 +01:00
item_geofunc.h MDEV-13467: Feature request: Support for ST_Distance_Sphere() 2021-03-27 10:42:39 +01: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-24585 Assertion `je->s.cs == nice_js->charset()' failed in json_nice. 2021-10-19 11:00:56 +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 Fixed compilation error if HAVE_CRYPT is not defined 2022-01-27 21:44:45 +02:00
item_strfunc.h MDEV-27544 database() function should return 64 characters 2022-01-20 19:01:36 +11:00
item_subselect.cc MDEV-22377: Subquery in an UPDATE query uses full scan instead of range 2022-02-21 18:44:11 +03:00
item_subselect.h MDEV-25108: Running of the EXPLAIN EXTENDED statement produces extra warning in case it is executed in PS (prepared statement) mode 2021-04-12 20:16:57 +07:00
item_sum.cc Revert "MDEV-24454 Crash at change_item_tree" 2022-01-10 09:12:17 -08:00
item_sum.h Merge branch '10.1' into 10.2 2020-08-02 11:05:29 +02:00
item_timefunc.cc compilation fixes for sys-devel/gcc-11.2.0:11 2021-10-25 17:30:03 +02:00
item_timefunc.h cleanup: remove redundant ADDINTERVAL_PRECEDENCE 2020-10-23 15:53:41 +02:00
item_windowfunc.cc MDEV-17785: Window functions not working in ONLY_FULL_GROUP_BY mode 2022-02-07 21:43:42 +03:00
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 follow-up MDEV-18166: rename marking functions 2021-07-12 22:00:40 +03: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 MDEV-25129 Add KEYWORDS view to the INFORMATION_SCHEMA 2021-06-29 16:15:24 +03: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-21308 : WSREP: binlog ... cache not empty warnings on server with WSREP disabled 2022-01-22 09:14:26 +02:00
log.h MDEV-25284: Assertion `info->type == READ_CACHE || info->type == WRITE_CACHE' failed 2021-10-18 10:43:51 -06:00
log_event.cc MDEV-27536 invalid BINLOG_BASE64_EVENT and assertion Diagnostics_area:: !is_set() 2022-01-27 12:28:01 +02:00
log_event.h MDEV-16146: MariaDB slave stops with following errors. 2021-04-30 20:34:31 +05:30
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 MDEV-15064: IO_CACHE mysys read_pos, not libmaria rc_pos 2021-04-17 17:44:41 +10: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 Don't beep in mysql_upgrade_service.exe 2021-12-07 17:46:29 +01:00
mysqld.cc MDEV-27978 fix wrong name in error when max_session_mem_used exceeded 2022-03-08 15:13:09 +11:00
mysqld.h Revert MDEV-25114 2021-09-24 16:21:20 +03: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-27262 Unexpected index intersection with full index scan for an index 2021-12-23 19:12:58 -08: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 MDEV-25112 MIN/MAX aggregation over an indexed column may return wrong result 2021-03-18 09:54:49 -07: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 MDEV-25917 create table like fails if source table is partitioned and engine is myisam or aria with data directory. 2022-01-25 12:58:17 +04:00
partition_info.cc MDEV-25917 create table like fails if source table is partitioned and engine is myisam or aria with data directory. 2022-01-25 12:58:17 +04:00
partition_info.h MDEV-25917 create table like fails if source table is partitioned and engine is myisam or aria with data directory. 2022-01-25 12:58:17 +04: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-21252 ER_HOST_IS_BLOCKED returns packet sequence 1 instead of 0 2022-01-11 17:46:51 +01:00
protocol.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
records.cc MDEV-26351 segfault - (MARIA_HA *) 0x0 in ha_maria::extra 2022-02-10 15:48:06 +01:00
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-26529: binlog.binlog_flush_binlogs_delete_domain fails on RISC-V 2021-09-06 08:47:58 +10: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 MDEV-25284: Assertion `info->type == READ_CACHE || info->type == WRITE_CACHE' failed 2021-10-18 10:43:51 -06:00
rpl_mi.h MDEV-25284: Assertion `info->type == READ_CACHE || info->type == WRITE_CACHE' failed 2021-10-18 10:43:51 -06:00
rpl_parallel.cc MDEV-22370 safe_mutex: Trying to lock uninitialized mutex at /data/src/10.4-bug/sql/rpl_parallel.cc, line 470 upon shutdown during FTWRL 2021-05-14 11:49:46 +01:00
rpl_parallel.h MDEV-22370 safe_mutex: Trying to lock uninitialized mutex at /data/src/10.4-bug/sql/rpl_parallel.cc, line 470 upon shutdown during FTWRL 2021-05-14 11:49:46 +01:00
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-25681: --relay-log{,-index} missing warning 2021-05-17 09:39:43 +10:00
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 signal handler, display coredump file pattern similarly to MDEV-25294 but for FreeBSD, thankfully the sysctl OID is the same. 2021-04-15 04:03:40 +10:00
slave.cc MDEV-16091: Seconds_Behind_Master spikes to millions of seconds 2022-01-04 11:21:33 -07: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-26833 Missed statement rollback in case transaction drops or create temporary table 2021-11-05 19:33:28 +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-25461 Assertion `je->state == JST_KEY' failed in Geometry::create_from_json. 2021-06-28 11:53:33 +04:00
spatial.h MDEV-13467: Feature request: Support for ST_Distance_Sphere() 2021-03-27 10:42:39 +01:00
sql_acl.cc MDEV-17964: Assertion `status == 0' failed in add_role_user_mapping_action 2021-10-15 19:19:36 +03:00
sql_acl.h Revert "[MDEV-7978] add show create user" 2020-09-24 13:58:29 +10:00
sql_admin.cc MDEV-18249 ASSERT_COLUMN_MARKED_FOR_READ failed in ANALYZE TABLE 2021-07-12 22:00:40 +03: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-25766 Unused CTE lead to a crash in find_field_in_tables/find_order_in_list 2022-02-10 14:36:25 +01:00
sql_base.h MDEV-23597 Assertion `marked_for_read()' failed while evaluating DEFAULT 2021-07-16 13:31:19 +03: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-23210 Assertion `(length % 4) == 0' failed in my_lengthsp_utf32 on ALTER TABLE, SELECT and INSERT 2022-03-14 14:42:59 +04:00
sql_class.h MDEV-24667 LOAD DATA INFILE on temporary table not written to slave binlog 2022-03-25 10:49:48 +02: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-26825 Bogus error for query with two usage of CTE referring another CTE 2021-11-16 18:56:43 -08:00
sql_cte.h MDEV-26189 Missing handling of unknown column in WHERE of recursive CTE 2021-07-21 08:29:31 -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 MDEV-25576: The statement EXPLAIN running as regular statement and as prepared statement produces different results for UPDATE with subquery 2021-05-30 17:31:55 +07:00
sql_delete.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
sql_derived.cc MDEV-25969: Condition pushdown into derived table doesn't work if select list uses SP 2021-06-30 13:52:23 +03: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 Fix comment 2021-10-22 11:08:36 +03:00
sql_explain.h Make Explain_node::children protected 2021-10-08 19:17:06 +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-22445 Crash on HANDLER READ NEXT after XA PREPARE 2021-10-20 15:15:21 +03: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-23391 Crash/assertion CREATE OR REPLACE TABLE AS SELECT under LOCK TABLE 2021-10-26 14:33:07 +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-24767 Wrong result when forced BNLH is used for join supported 2021-03-22 22:04:54 -07:00
sql_join_cache.h MDEV-21104 Wrong result (extra rows and wrong values) with incremental BNLH 2021-03-10 17:28:40 -08:00
sql_lex.cc MDEV-25636: Bug report: abortion in sql/sql_parse.cc:6294 2022-02-10 20:35:32 +03:00
sql_lex.h MDEV-25460: Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' 2021-12-28 16:59: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 Bug#31374305 - FORMAT() NOT DISPLAYING WHOLE NUMBER SIDE CORRECTLY FOR ES_MX AND ES_ES LOCALES 2022-01-21 16:02:34 +01: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-23915 ER_KILL_DENIED_ERROR not passed a thread id (part 2) 2022-03-16 09:37:45 +11: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-27494 Rename .ic files to .inl 2022-01-17 16:41:51 +01: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.inl MDEV-27494 Rename .ic files to .inl 2022-01-17 16:41:51 +01:00
sql_prepare.cc Revert "MDEV-24454 Crash at change_item_tree" 2022-01-10 09:12:17 -08: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-25284: Assertion `info->type == READ_CACHE || info->type == WRITE_CACHE' failed 2021-10-18 10:43:51 -06:00
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-19631: Assertion `0' failed in st_select_lex_unit::optimize or different plan upon 2nd execution of PS with EXPLAIN 2022-03-30 16:11:18 +07:00
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 test cases for MySQL bugs 2022-01-21 16:02:34 +01:00
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-25402 Assertion `!str || str != Ptr' failed in String::copy 2021-10-27 10:50:15 +04:00
sql_string.h Merge 10.1 into 10.2 2020-09-03 09:10:03 +03:00
sql_table.cc Fix gcc-12 -O2 -Warray-bounds 2022-03-17 10:20:07 +02: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 mallinfo2: whitespace fix 2021-03-30 16:16:24 +11: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-23365: Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' 2021-09-06 18:12:45 +05:30
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 Bug #31674599: THE UDF_INIT() FUNCTION CAUSE SERVER CRASH 2021-04-27 18:21:01 +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-25565 Crash on 2-nd execution of SP/PS for query calculating window functions 2021-07-20 11:26:33 -07:00
sql_union.h Update FSF Address 2019-05-11 21:29:06 +03:00
sql_update.cc MDEV-23597 Assertion `marked_for_read()' failed while evaluating DEFAULT 2021-07-16 13:31:19 +03:00
sql_update.h Update FSF Address 2019-05-11 21:29:06 +03:00
sql_view.cc MDEV-20516: Assertion `!lex->proc_list.first && !lex->result && !lex->param_list.elements' failed in mysql_create_view 2022-01-22 12:46:06 +07:00
sql_view.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
sql_window.cc MDEV-25565 Crash on 2-nd execution of SP/PS for query calculating window functions 2021-07-20 11:26:33 -07:00
sql_window.h MDEV-25565 Crash on 2-nd execution of SP/PS for query calculating window functions 2021-07-20 11:26:33 -07:00
sql_yacc.yy MDEV-23210 Assertion `(length % 4) == 0' failed in my_lengthsp_utf32 on ALTER TABLE, SELECT and INSERT 2022-03-14 14:42:59 +04: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 MDEV-27978 fix wrong name in error when max_session_mem_used exceeded 2022-03-08 15:13:09 +11:00
sys_vars.inl MDEV-27494 Rename .ic files to .inl 2022-01-17 16:41:51 +01:00
sys_vars_shared.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
table.cc MDEV-28078 Garbage on multiple equal ENUMs with tricky character sets 2022-03-17 13:05:03 +04:00
table.h follow-up MDEV-18166: rename marking functions 2021-07-12 22:00:40 +03:00
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 MDEV-24667 LOAD DATA INFILE on temporary table not written to slave binlog 2022-03-25 10:49:48 +02: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 Fix message severity for "thread pool blocked" messages. 2021-10-28 09:59:24 +02: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-26077 Assertion err != DB_DUPLICATE_KEY or unexpected ER_TABLE_EXISTS_ERROR 2021-07-02 11:15:35 +03: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 Improve --help and remove not-free warnings for mysql_tzinfo_to_sql 2022-01-20 15:14:59 +02: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-28078 Garbage on multiple equal ENUMs with tricky character sets 2022-03-17 13:05:03 +04:00
unireg.h MDEV-22387: Do not violate __attribute__((nonnull)) 2020-11-02 14:19:21 +02:00
win_tzname_data.h Update timezone data on Windows 2021-04-22 15:51:55 +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-24853: Duplicate key generated during cluster configuration change 2021-03-08 11:15:08 +01:00
wsrep_hton.cc Merge 10.1 into 10.2 2020-06-05 18:32:37 +02:00
wsrep_mysqld.cc MDEV-25856 : SIGSEGV in ha_myisammrg::append_create_info 2022-01-11 09:43:59 +02: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-25978 : rsync SST does not work with custom binlog name 2021-06-23 08:11:05 +03: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-25472 : Server crashes when wsrep_cluster_address set to unkown address and wsrep_slave_threads to 0 2022-01-11 09:43:59 +02:00
wsrep_thd.h Revert MDEV-25114 2021-09-24 16:21:20 +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