MariaDB-server/sql
unknown e99aa91e90 MDEV-3928: Assertion `example' failed in Item_cache::is_expensive_processor with a 2-level IN subquery
Analysis:
The following call stack shows that it is possible to set Item_cache::value_cached, and the relevant value
without setting Item_cache::example.

#0 Item_cache_temporal::store_packed at item.cc:8395
#1 get_datetime_value at item_cmpfunc.cc:915
#2 resolve_const_item at item.cc:7987
#3 propagate_cond_constants at sql_select.cc:12264
#4 propagate_cond_constants at sql_select.cc:12227
#5 optimize_cond at sql_select.cc:13026
#6 JOIN::optimize at sql_select.cc:1016
#7 st_select_lex::optimize_unflattened_subqueries at sql_lex.cc:3161
#8 JOIN::optimize_unflattened_subqueries at opt_subselect.cc:4880
#9 JOIN::optimize at sql_select.cc:1554

The fix is to set Item_cache_temporal::example even when the value is
set directly by Item_cache_temporal::store_packed. This makes the
Item_cache_temporal object consistent.
2012-12-19 15:56:57 +02:00
..
examples Updated/added copyright headers 2011-06-30 17:31:31 +02:00
share Merge MariaDB 5.1.66 -> 5.2 -> 5.3 2012-11-09 10:11:20 +02:00
.cvsignore
add_errmsg
authors.h Merge with MariaDB 5.1 2011-11-24 18:48:58 +02:00
client_settings.h Merge with MariaDB 5.1 2011-11-24 18:48:58 +02:00
CMakeLists.txt merge 2012-04-05 23:07:18 +02:00
contributors.h
create_options.cc Merge from 5.1. 2012-09-26 18:29:49 +02:00
create_options.h small enhancement of the create table options feature: 2011-05-10 18:19:11 +02:00
custom_conf.h
debug_sync.cc Merge with 5.2. 2011-12-11 11:34:44 +02:00
debug_sync.h Initail merge with MySQL 5.1 (XtraDB still needs to be merged) 2011-11-21 19:13:14 +02:00
derror.cc Merge with 5.2. 2011-12-11 11:34:44 +02:00
des_key_file.cc
discover.cc Backport Fix for Bug#24509 - 2048 file descriptor limit on windows needs increasing. 2011-06-12 15:52:07 +02:00
event_data_objects.cc Merge with 5.2. 2011-12-11 11:34:44 +02:00
event_data_objects.h
event_db_repository.cc Merge with 5.2. 2011-12-11 11:34:44 +02:00
event_db_repository.h Merge with MariaDB 5.1 2011-11-24 18:48:58 +02:00
event_parse_data.cc Merge with 5.2. 2011-12-11 11:34:44 +02:00
event_parse_data.h Merge with MariaDB 5.1 2011-11-24 18:48:58 +02:00
event_queue.cc Merge with 5.1-microseconds 2011-05-28 05:11:32 +03:00
event_queue.h wl#173 - temporal types with sub-second resolution 2011-03-01 13:24:36 +01:00
event_scheduler.cc 5.2 merge. 2012-08-22 16:45:25 +02:00
event_scheduler.h
events.cc Merge with MariaDB 5.1 2011-11-24 18:48:58 +02:00
events.h
field_conv.cc merge 2012-04-05 23:07:18 +02:00
field.cc MDEV-454 Addition of a time interval reduces the resulting value 2012-08-29 17:55:59 +02:00
field.h Merge 5.2->5.3 2012-06-23 15:00:05 -07:00
filesort.cc Merge MariaDB 5.1.66 -> 5.2 -> 5.3 2012-11-09 10:11:20 +02:00
frm_crypt.cc
gcalc_slicescan.cc bug #977021 ST_BUFFER fails with the negative D. 2012-04-29 18:08:11 +05:00
gcalc_slicescan.h bug #901655 ST_BUFFER asserts with a coplicated shape. 2011-12-08 16:29:45 +04:00
gcalc_tools.cc GIS issues fixed. 2011-12-16 10:21:46 +04:00
gcalc_tools.h Fix for bug #809849 spatial operations must be KILL-able. 2011-11-20 12:30:43 +04:00
gen_lex_hash.cc Merge MySQL 5.1.66 -> MariaDB 5.1.65 2012-11-06 11:52:55 +02:00
gstream.cc Merge with 5.2. 2011-12-11 11:34:44 +02:00
gstream.h fix for bug 848926 GIS functions return "GEOMETRYCOLLECTION()" instead of "GEOMETRYCOLLECTION EMPTY" 2011-09-21 12:50:03 +05:00
ha_ndbcluster_binlog.cc merge from 5.2 2012-08-24 14:02:32 +02:00
ha_ndbcluster_binlog.h
ha_ndbcluster_cond.cc
ha_ndbcluster_cond.h
ha_ndbcluster_tables.h
ha_ndbcluster.cc Merge with 5.2. 2011-12-11 11:34:44 +02:00
ha_ndbcluster.h
ha_partition.cc Merge MariaDB 5.1.66 -> 5.2 -> 5.3 2012-11-09 10:11:20 +02:00
ha_partition.h Merge MariaDB 5.1.66 -> 5.2 -> 5.3 2012-11-09 10:11:20 +02:00
handler.cc Merge MariaDB 5.1.66 -> 5.2 -> 5.3 2012-11-09 10:11:20 +02:00
handler.h Automatic merge 2012-03-28 13:58:14 +03:00
hash_filo.cc
hash_filo.h
hostname.cc Bug#11753779: MAX_CONNECT_ERRORS WORKS ONLY WHEN 1ST 2012-06-19 12:56:40 +05:30
init.cc
item_buff.cc Merge with 5.2. 2011-12-11 11:34:44 +02:00
item_cmpfunc.cc MDEV-3928: Assertion `example' failed in Item_cache::is_expensive_processor with a 2-level IN subquery 2012-12-19 15:56:57 +02:00
item_cmpfunc.h Merge 5.2->5.3 2012-06-18 22:38:11 +04:00
item_create.cc Merge with 5.2. 2011-12-11 11:34:44 +02:00
item_create.h Merge with 5.2. 2011-12-11 11:34:44 +02:00
item_func.cc merge from 5.2 2012-08-24 14:02:32 +02:00
item_func.h Merge 5.2 -> 5.3 2012-11-01 21:36:31 +02:00
item_geofunc.cc Bug #1043845 st_distance() results are incorrect depending on variable order. 2012-08-31 19:50:45 +05:00
item_geofunc.h Fix for bug #809849 spatial operations must be KILL-able. 2011-11-20 12:30:43 +04:00
item_row.cc Merge 5.2->5.3 2012-06-18 22:38:11 +04:00
item_row.h Merge with 5.2. 2011-12-11 11:34:44 +02:00
item_strfunc.cc Merge MariaDB 5.1.66 -> 5.2 -> 5.3 2012-11-09 10:11:20 +02:00
item_strfunc.h Fix for LP BUG#944504 2012-03-05 15:48:12 +02:00
item_subselect.cc Merge MariaDB 5.1.66 -> 5.2 -> 5.3 2012-11-09 10:11:20 +02:00
item_subselect.h - Merged the fix for bug lp:1009187, mdev-373. 2012-09-17 11:13:46 +03:00
item_sum.cc MDEV-736 LP:1004615 - Unexpected warnings "Encountered illegal value '' when converting to DECIMAL" on a query with aggregate functions and GROUP BY 2012-11-17 16:50:15 +01:00
item_sum.h Rolled back the patch for bug 791761. 2012-02-26 00:19:07 -08:00
item_timefunc.cc MDEV-454 Addition of a time interval reduces the resulting value 2012-08-29 17:55:59 +02:00
item_timefunc.h LP993103: Wrong result with LAST_DAY('0000-00-00 00:00:00')IS NULL in WHERE condition 2012-05-02 16:53:02 +02:00
item_xmlfunc.cc Merge with MariaDB 5.1 2011-11-24 18:48:58 +02:00
item_xmlfunc.h
item.cc MDEV-3928: Assertion `example' failed in Item_cache::is_expensive_processor with a 2-level IN subquery 2012-12-19 15:56:57 +02:00
item.h MDEV-3928: Assertion `example' failed in Item_cache::is_expensive_processor with a 2-level IN subquery 2012-12-19 15:56:57 +02:00
key.cc Merge with 5.2. 2011-12-11 11:34:44 +02:00
lex_symbol.h
lex.h Merge with 5.2. 2011-12-11 11:34:44 +02:00
lock.cc Fixed lp:963603 "Assertion `lock_type != TL_UNLOCK && (lock_type == TL_IGNORE || file->lock.type == TL_UNLOCK)' failed in ha_maria::store_lock with DML, triggers, views" 2012-03-26 13:29:45 +03:00
log_event_old.cc merge from 5.2 2012-08-24 14:02:32 +02:00
log_event_old.h merge from 5.2 2012-08-24 14:02:32 +02:00
log_event.cc Merge into latest 5.3 2012-08-24 14:26:23 +02:00
log_event.h Merge MariaDB 5.1.66 -> 5.2.12 2012-11-08 15:24:35 +02:00
log_slow.h
log.cc Merge MariaDB 5.2->5.3 2012-11-20 13:57:49 +01:00
log.h Merge MariaDB 5.2->5.3 2012-11-20 13:57:49 +01:00
Makefile.am 5.2 merge. 2012-08-22 16:45:25 +02:00
mem_root_array.h Backport 5.5=>5.1 Patch for Bug#13805127: 2012-04-18 13:14:05 +02:00
message.h Initail merge with MySQL 5.1 (XtraDB still needs to be merged) 2011-11-21 19:13:14 +02:00
message.mc
message.rc
mf_iocache.cc
MSG00001.bin
multi_range_read.cc Added back MRR counters. The new names are: Handler_mrr_init, 2012-02-22 16:48:29 +04:00
multi_range_read.h Make EXPLAIN better at displaying MRR/BKA: 2011-04-02 14:04:45 +04:00
my_decimal.cc Merge with 5.2. 2011-12-11 11:34:44 +02:00
my_decimal.h merge 2012-04-05 23:07:18 +02:00
my_lock.c
mysql_install_db.cc MDEV-221 - Properly escape command line when starting mysql_install_db 2012-04-16 15:28:33 +02:00
mysql_priv.h Merge MariaDB 5.2->5.3 2012-11-20 13:57:49 +01:00
mysql_upgrade_service.cc - Properly terminate options array with all-zero entry. 2011-05-20 01:38:42 +02:00
mysqld_suffix.h
mysqld.cc Merge MariaDB 5.1.66 -> 5.2 -> 5.3 2012-11-09 10:11:20 +02:00
net_serv.cc Updated/added copyright headers 2011-06-30 17:31:31 +02:00
nt_servc.cc
nt_servc.h
opt_index_cond_pushdown.cc Backport of: 2012-02-16 20:15:57 +04:00
opt_range_mrr.cc Fixed compiler warnings 2011-02-25 20:15:27 +02:00
opt_range.cc Merge 2012-06-02 16:13:05 +04:00
opt_range.h Added comment about QUICK_RANGE_SELECT::free_cond being unused. 2012-06-22 14:14:22 +04:00
opt_subselect.cc Better comments 2012-08-21 22:24:34 +04:00
opt_subselect.h BUG#978479: Wrong result (extra rows) with derived_with_keys+loosescan+semijoin=ON, materialization=OFF 2012-04-19 05:37:16 +04:00
opt_sum.cc Merge 5.2->5.3 2012-05-11 11:40:23 +03:00
opt_table_elimination.cc 5.2->5.3 merge 2011-11-12 18:08:12 +01:00
parse_file.cc LPBUG#983285 - incompatibility in frm in case of VIEWs with non-default ALGORITHM option. 2012-04-20 21:09:16 +02:00
parse_file.h LPBUG#983285 - incompatibility in frm in case of VIEWs with non-default ALGORITHM option. 2012-04-20 21:09:16 +02:00
partition_element.h Merge with main 2011-02-22 20:28:01 +02:00
partition_info.cc Merge with MariaDB 5.1 2011-11-24 18:48:58 +02:00
partition_info.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
password.c Bug #13934049: 64884: LOGINS WITH INCORRECT PASSWORD ARE ALLOWED 2012-04-06 12:04:07 +03:00
plistsort.c Precise GIS functions added. 2011-05-04 23:20:17 +05:00
procedure.cc
procedure.h
protocol.cc 5.2 merge. 2012-08-22 16:45:25 +02:00
protocol.h Merge with 5.2. 2011-12-11 11:34:44 +02:00
records.cc Bug#14051002 VALGRIND: CONDITIONAL JUMP OR MOVE IN RR_CMP / MY_QSORT 2012-06-05 15:53:39 +02:00
repl_failsafe.cc Merge with 5.2. 2011-12-11 11:34:44 +02:00
repl_failsafe.h
rpl_constants.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
rpl_filter.cc Merge with MariaDB 5.1 2011-11-24 18:48:58 +02:00
rpl_filter.h
rpl_injector.cc Initail merge with MySQL 5.1 (XtraDB still needs to be merged) 2011-11-21 19:13:14 +02:00
rpl_injector.h
rpl_mi.cc Merge with 5.2. 2011-12-11 11:34:44 +02:00
rpl_mi.h Merge with 5.2. 2011-12-11 11:34:44 +02:00
rpl_record_old.cc Fixed bug lp:917689 "Archive table corruption crashing MariaDB signal 11" 2012-03-13 16:38:43 +02:00
rpl_record_old.h Fixed bug lp:917689 "Archive table corruption crashing MariaDB signal 11" 2012-03-13 16:38:43 +02:00
rpl_record.cc Fixed bug lp:917689 "Archive table corruption crashing MariaDB signal 11" 2012-03-13 16:38:43 +02:00
rpl_record.h Fixed bug lp:917689 "Archive table corruption crashing MariaDB signal 11" 2012-03-13 16:38:43 +02:00
rpl_reporting.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
rpl_reporting.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
rpl_rli.cc 5.2 merge. 2012-08-22 16:45:25 +02:00
rpl_rli.h 5.2 merge. 2012-08-22 16:45:25 +02:00
rpl_tblmap.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
rpl_tblmap.h
rpl_utility.cc 5.2 merge. 2012-08-22 16:45:25 +02:00
rpl_utility.h merge with MySQL 5.1.65 2012-08-22 11:40:39 +02:00
scheduler.cc Merge 5.2->5.3 in preparation for the release of mariadb-5.3.4-rc. 2012-02-01 15:48:02 -08:00
scheduler.h
set_var.cc MDEV-495 backport --ignore-db-dir. 2012-09-27 13:18:07 +05:00
set_var.h Updated/added copyright headers 2011-06-30 17:31:31 +02:00
signal_handler.cc 5.2 merge 2012-05-20 14:57:29 +02:00
slave.cc 5.2 merge. 2012-08-22 16:45:25 +02:00
slave.h Merge with 5.2. 2011-12-11 11:34:44 +02:00
sp_cache.cc Initail merge with MySQL 5.1 (XtraDB still needs to be merged) 2011-11-21 19:13:14 +02:00
sp_cache.h
sp_head.cc 5.2 merge 2012-05-20 14:57:29 +02:00
sp_head.h merge 2012-04-05 12:01:52 +02:00
sp_pcontext.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sp_pcontext.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sp_rcontext.cc Merge with MariaDB 5.1 2011-11-24 18:48:58 +02:00
sp_rcontext.h Merge Mariadb 5.1->5.2 2011-04-12 14:26:06 +02:00
sp.cc Merge with MariaDB 5.1 2011-11-24 18:48:58 +02:00
sp.h Merge with MariaDB 5.1 2011-11-24 18:48:58 +02:00
spatial.cc Merge MariaDB 5.1.66 -> 5.2 -> 5.3 2012-11-09 10:11:20 +02:00
spatial.h Merge MariaDB 5.1.66 -> 5.2 -> 5.3 2012-11-09 10:11:20 +02:00
sql_acl.cc Merge MariaDB 5.2->5.3 2012-11-20 13:57:49 +01:00
sql_acl.h Merge with MariaDB 5.1 2011-11-24 18:48:58 +02:00
sql_analyse.cc Initail merge with MySQL 5.1 (XtraDB still needs to be merged) 2011-11-21 19:13:14 +02:00
sql_analyse.h
sql_array.h
sql_base.cc Merge MariaDB 5.2->5.3 2012-11-20 13:57:49 +01:00
sql_binlog.cc Merge with 5.2. 2011-12-11 11:34:44 +02:00
sql_bitmap.h Merged the code of MWL#106 into 5.3 2011-05-16 22:39:43 -07:00
sql_builtin.cc.in
sql_cache.cc merge 2012-04-05 23:07:18 +02:00
sql_cache.h Fixed typos in Query Cache. 2012-02-03 16:56:12 +02:00
sql_class.cc 5.2 merge. 2012-08-22 16:45:25 +02:00
sql_class.h 5.2 merge. 2012-08-22 16:45:25 +02:00
sql_client.cc
sql_connect.cc Bug#11753779: MAX_CONNECT_ERRORS WORKS ONLY WHEN 1ST 2012-06-19 12:56:40 +05:30
sql_crypt.cc Initail merge with MySQL 5.1 (XtraDB still needs to be merged) 2011-11-21 19:13:14 +02:00
sql_crypt.h Initail merge with MySQL 5.1 (XtraDB still needs to be merged) 2011-11-21 19:13:14 +02:00
sql_cursor.cc Merge with 5.2. 2011-12-11 11:34:44 +02:00
sql_cursor.h
sql_db.cc merge from 5.2 2012-08-24 14:02:32 +02:00
sql_delete.cc Merge MariaDB 5.2->5.3 2012-11-20 13:57:49 +01:00
sql_derived.cc Fixed LP bug #953649. 2012-03-13 13:34:20 -07:00
sql_do.cc
sql_error.cc Merge with 5.2. 2011-12-11 11:34:44 +02:00
sql_error.h
sql_expression_cache.cc Early check of subquery cache hit rate added to limit its performance impact in the worst case. 2011-08-12 13:54:41 +03:00
sql_expression_cache.h Early check of subquery cache hit rate added to limit its performance impact in the worst case. 2011-08-12 13:54:41 +03:00
sql_handler.cc Speedup: 2012-03-23 18:22:39 +02:00
sql_handler.h Implementation of MWL#172: Add support for prepared statements to HANDLER READ 2011-01-04 00:55:41 +02:00
sql_help.cc Merge with 5.2. 2011-12-11 11:34:44 +02:00
sql_insert.cc merge from 5.2 2012-08-24 14:02:32 +02:00
sql_join_cache.cc Fixed LP bug #1058071 (mdev-564). 2012-09-29 22:44:13 -07:00
sql_join_cache.h Counters for Index Condition Pushdown added (MDEV-130). 2012-02-16 08:49:10 +02:00
sql_lex.cc 5.2 merge. 2012-08-22 16:45:25 +02:00
sql_lex.h 5.2 merge. 2012-08-22 16:45:25 +02:00
sql_lifo_buffer.h Fixed high-impact Windows 64bit warnings (at least 4000 of them) 2011-02-19 13:43:01 +01:00
sql_list.cc
sql_list.h Unused method removed. 2012-04-06 13:18:12 +03:00
sql_load.cc merge from 5.2 2012-08-24 14:02:32 +02:00
sql_locale.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sql_manager.cc Fix embedded/windows tests- move COND_manager and LOCK_manager to sql_manager.cc, to prevent race condition that results into accessing already destroyed critical section 2012-01-02 23:52:31 +01:00
sql_map.cc
sql_map.h
sql_olap.cc Merge with 5.2. 2011-12-11 11:34:44 +02:00
sql_parse.cc 5.2 merge. 2012-08-22 16:45:25 +02:00
sql_partition.cc Merge with MariaDB 5.1 2011-11-24 18:48:58 +02:00
sql_partition.h Initail merge with MySQL 5.1 (XtraDB still needs to be merged) 2011-11-21 19:13:14 +02:00
sql_plugin_services.h Added progress reporting for alter table, LOAD DATA INFILE and for aria tables: check table, repair table, analyze table. 2011-07-01 15:08:30 +03:00
sql_plugin.cc Fixed lp:886479 "[PATCH] plugin boolean result" 2012-04-02 11:45:07 +03:00
sql_plugin.h Merge with MariaDB 5.1 2011-11-24 18:48:58 +02:00
sql_prepare.cc MDEV-3810 fix. 2012-11-09 13:07:32 +02:00
sql_profile.cc 5.2 merge. 2012-08-22 16:45:25 +02:00
sql_profile.h Initail merge with MySQL 5.1 (XtraDB still needs to be merged) 2011-11-21 19:13:14 +02:00
sql_rename.cc Merge with 5.2. 2011-12-11 11:34:44 +02:00
sql_repl.cc Merge into latest 5.3 2012-08-24 14:26:23 +02:00
sql_repl.h
sql_select.cc Fixed LP bug #1002146 (bug mdev-645). 2012-11-21 21:55:04 -08:00
sql_select.h Fix compiler warnings. 2012-05-08 20:58:41 +03:00
sql_servers.cc Merge with MariaDB 5.1 2011-11-24 18:48:58 +02:00
sql_servers.h
sql_show.cc Merge MariaDB 5.1.66 -> 5.2 -> 5.3 2012-11-09 10:11:20 +02:00
sql_show.h MDEV-495 backport --ignore-db-dir. 2012-09-27 13:18:07 +05:00
sql_sort.h
sql_state.c
sql_string.cc merge from 5.2 2012-08-24 14:02:32 +02:00
sql_string.h Merge MariaDB 5.1.66 -> 5.2 -> 5.3 2012-11-09 10:11:20 +02:00
sql_table.cc Merge MariaDB 5.2->5.3 2012-11-20 13:57:49 +01:00
sql_tablespace.cc Initail merge with MySQL 5.1 (XtraDB still needs to be merged) 2011-11-21 19:13:14 +02:00
sql_test.cc Merge with 5.2. 2011-12-11 11:34:44 +02:00
sql_trigger.cc Merge with 5.2. 2011-12-11 11:34:44 +02:00
sql_trigger.h Merge with 5.2. 2011-12-11 11:34:44 +02:00
sql_udf.cc Merge with MariaDB 5.1 2011-11-24 18:48:58 +02:00
sql_udf.h
sql_union.cc fix for MDEV-367 2012-08-25 09:15:57 +03:00
sql_update.cc Merge MariaDB 5.2->5.3 2012-11-20 13:57:49 +01:00
sql_view.cc LPBUG#983285 - incompatibility in frm in case of VIEWs with non-default ALGORITHM option. 2012-04-20 21:09:16 +02:00
sql_view.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sql_yacc.yy MDEV-438 Microseconds: Precision is ignored in CURRENT_TIMESTAMP(N) when it is given as a default column value 2012-08-29 18:36:57 +02:00
strfunc.cc Initail merge with MySQL 5.1 (XtraDB still needs to be merged) 2011-11-21 19:13:14 +02:00
structs.h Merge with 5.2. 2011-12-11 11:34:44 +02:00
table.cc MDEV-3914 fix. 2012-12-05 21:06:00 +02:00
table.h Merge MariaDB 5.2->5.3 2012-11-20 13:57:49 +01:00
thr_malloc.cc Merge with MariaDB 5.1 2011-11-24 18:48:58 +02:00
time.cc MDEV-456 An out-of-range datetime value (with a 5-digit year) can be created and cause troubles 2012-08-29 10:59:51 +02:00
tzfile.h
tztime.cc Merge with 5.2. 2011-12-11 11:34:44 +02:00
tztime.h Merge with 5.2. 2011-12-11 11:34:44 +02:00
udf_example.c Initail merge with MySQL 5.1 (XtraDB still needs to be merged) 2011-11-21 19:13:14 +02:00
udf_example.def
uniques.cc Merge with 5.2. 2011-12-11 11:34:44 +02:00
unireg.cc Merge 5.2->5.3 2012-06-23 15:00:05 -07:00
unireg.h Merge 5.2->5.3 2012-06-23 15:00:05 -07:00
winservice.c LP952607: Do not show MySQL services preinstalled by Dell in the upgrade wizard 2012-03-12 12:14:04 +01:00
winservice.h split long lines, use get_mysql_service_properties() 2011-01-30 22:42:02 +01:00