mariadb/sql
Sergey Glukhov c1ad5072b8 Bug#52336 Segfault / crash in 5.1 copy_fields (param=0x9872980) at sql_select.cc:15355
The problem is that we can not use make_cond_for_table().
This function relies on used_tables() condition
which is not set properly for subqueries.
As result subquery is not filtered out.
The fix is to use remove_eq_conds() function instead
of make_cond_for_table() func. 'remove_eq_conds()'
algorithm relies on const_item() value and it allows
to handle subqueries in right way.


mysql-test/r/having.result:
  test case
mysql-test/t/having.test:
  test case
sql/sql_select.cc:
  The fix is to use remove_eq_conds() function instead
  of make_cond_for_table() function.
2010-04-05 16:10:26 +05:00
..
examples
share Bug #35250: readline check breaks when doing vpath build 2010-03-09 17:51:31 +02:00
.cvsignore
add_errmsg
authors.h
client_settings.h
CMakeLists.txt
contributors.h
custom_conf.h
debug_sync.cc Bug #51648 DBUG_SYNC_POINT is not defined on all platforms and mtr cant pre-check that 2010-03-19 11:06:40 +02:00
debug_sync.h Bug #51648 DBUG_SYNC_POINT is not defined on all platforms and mtr cant pre-check that 2010-03-19 11:06:40 +02:00
derror.cc
des_key_file.cc
discover.cc
event_data_objects.cc
event_data_objects.h
event_db_repository.cc
event_db_repository.h
event_parse_data.cc
event_parse_data.h
event_queue.cc
event_queue.h
event_scheduler.cc fixed various pb2 test failures on windows. 2010-02-02 14:17:21 +02:00
event_scheduler.h
events.cc Bug #50095 Multi statement including CREATE EVENT causes rotten binlog entry 2010-03-28 16:37:47 +08:00
events.h
field.cc Merging with mysql-5.1-bugteam 2010-03-17 19:15:41 +01:00
field.h Merging with mysql-5.1-bugteam 2010-03-17 19:15:41 +01:00
field_conv.cc Bug#48525: trigger changes "Column 'id' cannot be null" behaviour 2010-03-29 03:32:30 +01:00
filesort.cc Auto-merge. 2010-01-29 15:08:49 +04:00
frm_crypt.cc
gen_lex_hash.cc
gstream.cc
gstream.h
ha_ndbcluster.cc
ha_ndbcluster.h
ha_ndbcluster_binlog.cc
ha_ndbcluster_binlog.h
ha_ndbcluster_cond.cc
ha_ndbcluster_cond.h
ha_ndbcluster_tables.h
ha_partition.cc merged 2010-03-12 11:14:40 +01:00
ha_partition.h
handler.cc
handler.h
hash_filo.cc
hash_filo.h
hostname.cc
init.cc
item.cc Bug #47904 Incorrect results w/ table subquery, derived SQs, and LEFT JOIN 2010-04-02 01:35:36 +05:30
item.h Bug#50918: Date columns treated differently in Views than in 2010-03-16 10:20:07 +01:00
item_buff.cc
item_cmpfunc.cc Bug #49910: Behavioural change in SELECT/WHERE on YEAR(4) data type 2010-03-22 12:33:25 +04:00
item_cmpfunc.h Bug #49829 Many "hides virtual function" warnings with 2010-03-14 17:01:45 +01:00
item_create.cc Bug #49829 Many "hides virtual function" warnings with 2010-03-14 17:01:45 +01:00
item_create.h Bug #49829 Many "hides virtual function" warnings with 2010-03-14 17:01:45 +01:00
item_func.cc Bug #51648 DBUG_SYNC_POINT is not defined on all platforms and mtr cant pre-check that 2010-03-19 11:06:40 +02:00
item_func.h
item_geofunc.cc
item_geofunc.h
item_row.cc Bug#51598 Inconsistent behaviour with a COALESCE statement inside an IN comparison 2010-03-19 10:21:37 +04:00
item_row.h Bug#51598 Inconsistent behaviour with a COALESCE statement inside an IN comparison 2010-03-19 10:21:37 +04:00
item_strfunc.cc Bug #40625: Concat fails on DOUBLE values in a Stored 2010-04-03 00:30:22 +04:00
item_strfunc.h fixed compiler warning 2010-03-29 18:42:49 +05:00
item_subselect.cc Bug#47761: crash when killing a query during subquery execution... 2010-03-09 09:51:56 -03:00
item_subselect.h
item_sum.cc Fix for bug#52397: another crash with explain extended and group_concat 2010-03-31 17:00:56 +04:00
item_sum.h Bug #49829 Many "hides virtual function" warnings with 2010-03-14 17:01:45 +01:00
item_timefunc.cc merge 5.0-bugteam -> 5.1-bugteam 2010-02-26 15:16:46 +02:00
item_timefunc.h
item_xmlfunc.cc
item_xmlfunc.h
key.cc
lex.h
lex_symbol.h
lock.cc
log.cc Bug #50407 mysqlbinlog --database=X produces bad output for SAVEPOINTs 2010-03-28 19:57:33 +08:00
log.h
log_event.cc Bug #50407 mysqlbinlog --database=X produces bad output for SAVEPOINTs 2010-03-28 19:57:33 +08:00
log_event.h Bug #50407 mysqlbinlog --database=X produces bad output for SAVEPOINTs 2010-03-28 19:57:33 +08:00
log_event_old.cc Bug #49829 Many "hides virtual function" warnings with 2010-03-14 17:01:45 +01:00
log_event_old.h
Makefile.am
message.h
message.mc
message.rc
mf_iocache.cc
MSG00001.bin
my_decimal.cc
my_decimal.h
my_lock.c
mysql_priv.h Bug #37168: Missing variable - skip_name_resolve 2010-03-31 16:12:37 +03:00
mysql_priv.h.pp
mysqld.cc Bug #37168: Missing variable - skip_name_resolve 2010-03-31 16:12:37 +03:00
mysqld_suffix.h
net_serv.cc
nt_servc.cc
nt_servc.h
opt_range.cc BUG#49902 - SELECT returns incorrect results 2010-02-09 12:53:13 +04:00
opt_range.h
opt_sum.cc Bug#47762: Incorrect result from MIN() when WHERE tests NOT 2010-03-16 15:51:00 +01:00
parse_file.cc
parse_file.h
partition_element.h
partition_info.cc
partition_info.h
password.c
procedure.cc
procedure.h
protocol.cc Bug #52304 valgrind does not like to print un-inited string in Protocol_text::store() 2010-03-23 17:00:50 +02:00
protocol.h
records.cc
repl_failsafe.cc
repl_failsafe.h
rpl_constants.h
rpl_filter.cc
rpl_filter.h
rpl_injector.cc Fix for compiler warnings: 2010-01-28 19:51:40 -02:00
rpl_injector.h
rpl_mi.cc
rpl_mi.h
rpl_record.cc Fix for compiler warnings: 2010-01-28 19:51:40 -02:00
rpl_record.h
rpl_record_old.cc
rpl_record_old.h
rpl_reporting.cc
rpl_reporting.h
rpl_rli.cc
rpl_rli.h
rpl_tblmap.cc
rpl_tblmap.h
rpl_utility.cc BUG#49618: Field length stored incorrectly in binary log 2010-03-17 15:28:49 +01:00
rpl_utility.h Merging with mysql-5.1-bugteam 2010-03-17 19:15:41 +01:00
scheduler.cc
scheduler.h
set_var.cc Bug #37168: Missing variable - skip_name_resolve 2010-03-31 16:12:37 +03:00
set_var.h
slave.cc Bug #51648 DBUG_SYNC_POINT is not defined on all platforms and mtr cant pre-check that 2010-03-19 11:06:40 +02:00
slave.h
sp.cc Bug#47736 killing a select from a view when the view is processing a function, asserts 2010-02-05 13:39:46 +04:00
sp.h
sp_cache.cc Bug#50624: crash in check_table_access during call procedure 2010-02-13 08:35:14 -02:00
sp_cache.h
sp_head.cc Bug#48525: trigger changes "Column 'id' cannot be null" behaviour 2010-03-29 03:32:30 +01:00
sp_head.h
sp_pcontext.cc
sp_pcontext.h
sp_rcontext.cc
sp_rcontext.h
spatial.cc
spatial.h
sql_acl.cc Revert a patch for Bug#48231, which introduced valgrind warnings. 2010-02-02 16:38:44 +03:00
sql_acl.h
sql_analyse.cc
sql_analyse.h
sql_array.h
sql_base.cc Automerge BUG 51226 bzr bundle from bug report --> myqsl-5.1-bugteam. 2010-03-08 23:57:26 +00:00
sql_binlog.cc
sql_bitmap.h
sql_builtin.cc.in
sql_cache.cc
sql_cache.h
sql_class.cc Bug#48525: trigger changes "Column 'id' cannot be null" behaviour 2010-03-29 03:32:30 +01:00
sql_class.h Bug#48525: trigger changes "Column 'id' cannot be null" behaviour 2010-03-29 03:32:30 +01:00
sql_client.cc
sql_connect.cc
sql_crypt.cc
sql_crypt.h
sql_cursor.cc
sql_cursor.h
sql_db.cc Fix for compiler warnings: 2010-01-28 19:51:40 -02:00
sql_delete.cc BUG#51251: Wrong binlogging in case of TRUNCATE <temporary InnoDB table> 2010-02-26 12:58:33 +00:00
sql_derived.cc
sql_do.cc
sql_error.cc
sql_error.h
sql_handler.cc
sql_help.cc
sql_insert.cc Bug#48525: trigger changes "Column 'id' cannot be null" behaviour 2010-03-29 03:32:30 +01:00
sql_lex.cc Bug #45640: optimizer bug produces wrong results 2010-02-06 23:54:30 +04:00
sql_lex.h Bug #50095 Multi statement including CREATE EVENT causes rotten binlog entry 2010-03-28 16:37:47 +08:00
sql_list.cc
sql_list.h
sql_load.cc Bug#51377 Crash in information_schema / processlist on concurrent DDL workload 2010-03-09 14:19:10 +04:00
sql_locale.cc
sql_manager.cc
sql_map.cc
sql_map.h
sql_olap.cc
sql_parse.cc Bug#46615 Assertion in Query_cache::invalidate in INSERT in a VIEW of a MERGE table 2010-03-24 17:37:41 +01:00
sql_partition.cc merge 2010-03-12 11:52:38 +01:00
sql_partition.h
sql_plugin.cc Bug#51770: UNINSTALL PLUGIN requires no privileges 2010-03-09 09:16:17 -03:00
sql_plugin.h
sql_prepare.cc
sql_profile.cc Bug #49829 Many "hides virtual function" warnings with 2010-03-14 17:01:45 +01:00
sql_profile.h
sql_rename.cc Backport Bug#37148 to 5.1 2010-01-24 15:03:23 +08:00
sql_repl.cc Bug #51648 DBUG_SYNC_POINT is not defined on all platforms and mtr cant pre-check that 2010-03-19 11:06:40 +02:00
sql_repl.h
sql_select.cc Bug#52336 Segfault / crash in 5.1 copy_fields (param=0x9872980) at sql_select.cc:15355 2010-04-05 16:10:26 +05:00
sql_select.h Addendum 2 for bug #46175: NULL read_view and consistent read assertion 2010-02-15 10:54:27 +02:00
sql_servers.cc
sql_servers.h
sql_show.cc Bug#51377 Crash in information_schema / processlist on concurrent DDL workload 2010-03-09 14:19:10 +04:00
sql_show.h
sql_sort.h
sql_state.c
sql_string.cc
sql_string.h
sql_table.cc Bug #49838: DROP INDEX and ADD UNIQUE INDEX for same index may corrupt 2010-03-17 16:18:46 +02:00
sql_tablespace.cc Backport Bug#37148 to 5.1 2010-01-24 15:03:23 +08:00
sql_test.cc Bug #50271: Debug output of JOIN structures is garbled 2010-01-28 12:10:57 +01:00
sql_trigger.cc Bug#50423: Crash on second call of a procedure dropping a trigger 2010-01-28 12:41:14 -02:00
sql_trigger.h
sql_udf.cc Manual merge with Conflicts: 2010-01-25 10:55:05 +08:00
sql_udf.h
sql_union.cc
sql_update.cc Bug #43414 Parenthesis (and other) warnings compiling 2010-02-22 14:23:47 +01:00
sql_view.cc Bug#40277: SHOW CREATE VIEW returns invalid SQL 2010-03-09 07:36:26 -03:00
sql_view.h
sql_yacc.yy Bug #49829 Many "hides virtual function" warnings with 2010-03-14 17:01:45 +01:00
strfunc.cc
structs.h
table.cc Bug#41788 mysql_fetch_field returns org_table == table by a view 2010-03-12 10:33:16 +04:00
table.h BUG#49902 - SELECT returns incorrect results 2010-02-09 12:53:13 +04:00
thr_malloc.cc
time.cc
tzfile.h
tztime.cc
tztime.h
udf_example.c
udf_example.def
uniques.cc
unireg.cc
unireg.h