mariadb/sql
Sergey Glukhov f2aee2371e Bug#45195 valgrind warnings about uninitialized values in store_record_in_cache()
The problem becomes apparent only if HAVE_purify is undefined.
It related to the part of code placed in open_table_from_share() fuction
where we initialize record buffer only if HAVE_purify is enabled.
So in case of HAVE_purify=OFF record buffer is not initialized
on open table stage.
Next we read key, find NULL value and update appropriate null bit
but do not update record buffer. After that the record is stored
in the join cache(store_record_in_cache). For CHAR fields we
strip trailing spaces and in our case this procedure uses
uninitialized record buffer.
The fix is to skip stripping space procedure in case of null values
for CHAR fields(partially based on 6.0 JOIN_CACHE implementation).


mysql-test/r/join.result:
  test case
mysql-test/t/join.test:
  test case
sql/field.cc:
  code updated according to new CACHE_FIELD struct
sql/sql_select.cc:
  code updated according to new CACHE_FIELD struct
sql/sql_select.h:
  CACHE_FIELD struct:
  added new fields: Field *field, uint type;
  removed fields: Field_blob *blob_field, bool strip;
2010-02-10 18:56:47 +04:00
..
examples Bug #43414 Parenthesis (and other) warnings compiling MySQL 2009-06-17 15:54:01 +02:00
share Bug#47974 'TYPE=storage_engine' is deprecated and will be 2010-02-09 11:30:50 +01:00
.cvsignore
add_errmsg
authors.h
client_settings.h Bug#46013: rpl_extraColmaster_myisam fails on pb2 2009-08-13 17:07:20 -03:00
CMakeLists.txt WL#4259 - Debug Sync Facility 2009-09-29 17:38:40 +02:00
contributors.h
custom_conf.h
debug_sync.cc Fixed a valgrind error in debug_sync 2009-10-04 12:53:02 +03:00
debug_sync.h WL#4259 - Debug Sync Facility 2009-09-29 17:38:40 +02:00
derror.cc
des_key_file.cc
discover.cc
event_data_objects.cc Bug#49501 Inefficient information_schema check (system collation) 2010-01-19 13:03:40 +04:00
event_data_objects.h Bug#35997 Event scheduler seems to let the server crash, if it is embedded. 2008-05-09 09:43:02 +02:00
event_db_repository.cc Bug #49132 Replication failure on temporary table + DDL 2010-01-22 17:38:21 +08:00
event_db_repository.h
event_parse_data.cc Bug#29125 Windows Server X64: so many compiler warnings 2009-02-13 11:41:47 -05:00
event_parse_data.h Added "Sun Microsystems, Inc." to copyright headers on files modified 2008-11-10 21:21:49 +01:00
event_queue.cc Bug#35997 Event scheduler seems to let the server crash, if it is embedded. 2008-05-09 09:43:02 +02:00
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 Revert a patch for Bug#48231, which introduced valgrind warnings. 2010-02-02 16:38:44 +03:00
events.h
field.cc Bug#45195 valgrind warnings about uninitialized values in store_record_in_cache() 2010-02-10 18:56:47 +04:00
field.h BUG#49481: RBR: MyISAM and bit fields may cause slave to stop on delete: 2010-01-21 17:20:24 +00:00
field_conv.cc Bug #43414 Parenthesis (and other) warnings compiling MySQL 2009-06-17 15:54:01 +02:00
filesort.cc Auto-merge. 2010-01-29 15:08:49 +04:00
frm_crypt.cc
gen_lex_hash.cc Bug#29125 Windows Server X64: so many compiler warnings 2009-02-13 11:41:47 -05:00
gstream.cc Bug #43414 Parenthesis (and other) warnings compiling MySQL 2009-06-09 18:11:21 +02:00
gstream.h
ha_ndbcluster.cc Bug #40877: multi statement execution fails in 5.1.30 2009-10-16 13:29:42 +03:00
ha_ndbcluster.h
ha_ndbcluster_binlog.cc Bug #40877: multi statement execution fails in 5.1.30 2009-10-16 13:29:42 +03:00
ha_ndbcluster_binlog.h
ha_ndbcluster_cond.cc fixed warnings and compile errors from the fix for bug 26243 2008-03-29 09:52:16 +02:00
ha_ndbcluster_cond.h Merge mysql.com:/misc/mysql/34749/50-34749 2008-03-10 07:07:56 +01:00
ha_ndbcluster_tables.h
ha_partition.cc post-push patch for bug#47343. 2010-01-19 17:02:51 +01:00
ha_partition.h Bug#48846: Too much time spent in ha_partition::records_in_range if not able to prune 2009-11-17 20:02:16 +01:00
handler.cc Revert of the push of bug #20837 due to failing regression tests. 2009-12-01 11:19:51 +02:00
handler.h Bug#46944 Internal prepared XA transction XIDs are not 2009-10-12 14:46:00 +02:00
hash_filo.cc
hash_filo.h
hostname.cc
init.cc Merge zippy.cornsilk.net:/home/cmiller/work/mysql/bug26294/my50-bug26294 2008-04-03 13:14:57 -04:00
item.cc Bug #45640: optimizer bug produces wrong results 2010-02-06 23:54:30 +04:00
item.h Bug #45640: optimizer bug produces wrong results 2010-02-06 23:54:30 +04:00
item_buff.cc
item_cmpfunc.cc merge 5.1-main to 5.1-bugteam 2010-01-13 12:28:42 +02:00
item_cmpfunc.h merge 5.1-main to 5.1-bugteam 2010-01-13 12:28:42 +02:00
item_create.cc BUG#49222: Mark RAND() as unsafe 2010-01-13 10:00:03 +01:00
item_create.h
item_func.cc 5.0-bugteam->5.1-bugteam merge 2009-12-22 14:38:33 +04:00
item_func.h Bug #49734: Crash on EXPLAIN EXTENDED UNION ... ORDER BY <any non-const-function> 2009-12-22 17:52:15 +02:00
item_geofunc.cc Manual merge of the fix for bug#43668. 2009-11-24 18:26:13 +03:00
item_geofunc.h Fix for Bug#30217: Views: changes in metadata behaviour 2008-02-22 13:30:33 +03:00
item_row.cc Fix for Bug#30217: Views: changes in metadata behaviour 2008-02-22 13:30:33 +03:00
item_row.h Fix for Bug#30217: Views: changes in metadata behaviour 2008-02-22 13:30:33 +03:00
item_strfunc.cc Fix for compiler warnings: 2010-01-28 19:51:40 -02:00
item_strfunc.h Fix for compiler warnings: 2010-01-28 19:51:40 -02:00
item_subselect.cc Auto-merged fix for the bug#34384. 2009-11-06 22:42:24 +03:00
item_subselect.h Bug#43668: Wrong comparison and MIN/MAX for YEAR(2) 2009-11-17 17:06:46 +03:00
item_sum.cc Auto-merge. 2009-11-24 18:30:21 +03:00
item_sum.h Bug#43668: Wrong comparison and MIN/MAX for YEAR(2) 2009-11-17 17:06:46 +03:00
item_timefunc.cc Bug#44131 Binary-mode "order by" returns records in incorrect order for UTF-8 strings 2009-12-03 13:22:34 +04:00
item_timefunc.h Bug #42849: innodb crash with varying time_zone on partitioned 2009-12-13 23:29:50 +03:00
item_xmlfunc.cc Bug#34384: Slow down on constant conversion. 2009-11-06 22:34:25 +03:00
item_xmlfunc.h
key.cc Bug#37721: ORDER BY when WHERE contains non-partitioned 2008-10-10 12:01:01 +02:00
lex.h Bug#45829 "CREATE TABLE TRANSACTIONAL PAGE_CHECKSUM ROW_FORMAT=PAGE accepted, does nothing": 2009-07-29 10:54:20 +02:00
lex_symbol.h
lock.cc Merge from 5.0 for 43414 2009-08-28 18:21:54 +02:00
log.cc BUG#48632: Fix for Bug #23300 Has Not Been Backported 2010-02-05 17:01:09 +00:00
log.h BUG#45292 orphan binary log created when starting server twice 2009-12-04 14:40:42 +00:00
log_event.cc BUG#50620: Adding an index to a table prevents slave from logging 2010-02-05 17:48:01 +00:00
log_event.h bug#47142 2010-01-27 19:27:49 +02:00
log_event_old.cc Backport Bug#37148 to 5.1 2010-01-24 15:03:23 +08:00
log_event_old.h
Makefile.am WL#4259 - Debug Sync Facility 2009-09-29 17:38:40 +02:00
message.h Bug#40280: Message compiler(mc.exe) needed to compile MySQL on windows. 2008-10-23 15:28:53 +02:00
message.mc Bug#40280: Message compiler(mc.exe) needed to compile MySQL on windows. 2008-10-23 15:28:53 +02:00
message.rc Bug#40280: Message compiler(mc.exe) needed to compile MySQL on windows. 2008-10-23 15:28:53 +02:00
mf_iocache.cc
MSG00001.bin Bug#40280: Message compiler(mc.exe) needed to compile MySQL on windows. 2008-10-23 15:28:53 +02:00
my_decimal.cc auto-merge 2008-11-27 12:33:04 +01:00
my_decimal.h Bug#48370: Absolutely wrong calculations with GROUP BY and decimal fields when using IF 2009-11-02 09:21:39 -02:00
my_lock.c
mysql_priv.h Bug#47974 'TYPE=storage_engine' is deprecated and will be 2010-02-09 11:30:50 +01:00
mysql_priv.h.pp Bug#47857 strip_sp function in mysys/mf_strip.c never used and cause name clash 2009-10-06 13:04:51 +02:00
mysqld.cc Bug#49025: mysqld-debug: missing DBUG_RETURN or DBUG_VOID_RETURN macro in function "?func" 2010-02-05 10:55:20 -02:00
mysqld_suffix.h
net_serv.cc Manual merge. 2009-07-28 22:44:28 +04:00
nt_servc.cc merge 2008-11-22 01:10:38 +01:00
nt_servc.h merge 2008-11-22 01:10:38 +01:00
opt_range.cc BUG#49902 - SELECT returns incorrect results 2010-02-09 12:53:13 +04:00
opt_range.h Merge BUG#36639 into 5.1 2008-08-25 21:18:22 +04:00
opt_sum.cc BUG#49902 - SELECT returns incorrect results 2010-02-09 12:53:13 +04:00
parse_file.cc Bug#44834 strxnmov is expected to behave as you'd expect 2009-06-19 13:24:43 +05:00
parse_file.h Bug#43385 Cannot ALTER DATABASE ... UPGRADE DATA DIRECTORY NAME when Views exist(addon) 2009-04-13 18:09:10 +05:00
partition_element.h
partition_info.cc Bug #43414 Parenthesis (and other) warnings compiling MySQL 2009-09-23 15:21:29 +02:00
partition_info.h fixed a valgrind warning in partition_pruning 2009-09-02 18:42:08 +03:00
password.c Manual merge. 2009-06-01 16:00:38 +04:00
procedure.cc
procedure.h Merge magare.gmz:/home/kgeorge/mysql/autopush/B26461-5.0-opt 2008-03-21 17:48:28 +02:00
protocol.cc Bug#44521 Executing a stored procedure as a prepared statement can sometimes cause 2009-07-29 22:07:08 +02:00
protocol.h Bug#44521 Executing a stored procedure as a prepared statement can sometimes cause 2009-07-29 22:07:08 +02:00
records.cc A fix and a test case for 2009-11-03 20:45:52 +03:00
repl_failsafe.cc Bug#49501 Inefficient information_schema check (system collation), addon 2010-01-22 14:58:21 +04:00
repl_failsafe.h
rpl_constants.h BUG#40482: server/mysqlbinlog crashes when reading invalid Incident_log_event 2008-12-29 17:04:10 +01:00
rpl_filter.cc A patch for Bug#45118 (mysqld.exe crashed in debug mode 2009-09-10 11:40:57 +04:00
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 BUG#48091 valgrind errors when slave has double not null and master has double null 2009-10-22 01:15:45 +01:00
rpl_record_old.cc
rpl_record_old.h
rpl_reporting.cc BUG#45511 rpl.rpl_binlog_corruption fails with warning messages in Valgrind 2009-06-16 16:04:30 +01:00
rpl_reporting.h BUG#45511 rpl.rpl_binlog_corruption fails with warning messages in Valgrind 2009-06-16 16:04:30 +01:00
rpl_rli.cc correction to the earlier merging: s/return/DBUG_RETURN/ 2009-12-14 18:50:22 +02:00
rpl_rli.h merging 5.0-bt -> 5.1-bt to local branch with bug@47210 2009-12-14 18:32:22 +02:00
rpl_tblmap.cc Bug#45613 handle failures from my_hash_insert 2009-11-20 16:18:01 +01:00
rpl_tblmap.h Bug#31455 mysqlbinlog don't print user readable info about RBR events 2008-08-20 19:06:31 +05:00
rpl_utility.cc BUG#37426: RBR breaks for CHAR() UTF-8 fields > 85 chars 2008-06-30 22:11:18 +02:00
rpl_utility.h Bug#48776 row based replication breaks with spatial / geometry types, cause crashes! 2010-01-05 14:25:29 +08:00
scheduler.cc
scheduler.h
set_var.cc WL#5154 Remove deprecated 4.1 features 2010-01-21 09:10:05 +01:00
set_var.h WL#4259 - Debug Sync Facility 2009-09-29 17:38:40 +02:00
slave.cc merging 5.0-bt -> 5.1-bt to local branch with bug@47210 2009-12-14 18:32:22 +02:00
slave.h Bug #47210 first execution of "start slave until" stops too early 2009-11-12 17:10:19 +02:00
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 Bug#45613 handle failures from my_hash_insert 2009-11-20 16:18:01 +01:00
sp_cache.cc Bug#45613 handle failures from my_hash_insert 2009-11-20 16:18:01 +01:00
sp_cache.h A fix for 2008-07-03 23:41:22 +04:00
sp_head.cc Backport Bug#37148 to 5.1 2010-01-24 15:03:23 +08:00
sp_head.h Bug#45613 handle failures from my_hash_insert 2009-11-20 16:18:01 +01:00
sp_pcontext.cc merging 2009-04-29 07:59:10 +05:00
sp_pcontext.h Manual merge. 2009-12-18 16:44:24 -02:00
sp_rcontext.cc Bug#34384: Slow down on constant conversion. 2009-11-06 22:34:25 +03:00
sp_rcontext.h
spatial.cc Merge from 5.0 for 43414 2009-08-28 18:21:54 +02:00
spatial.h Merge from 5.0-bugteam 2009-06-17 16:56:44 +02:00
sql_acl.cc Revert a patch for Bug#48231, which introduced valgrind warnings. 2010-02-02 16:38:44 +03:00
sql_acl.h Bug#41726: upgrade from 5.0 to 5.1.30 crashes if you didn't run mysql_upgrade 2009-11-21 09:18:21 -02:00
sql_analyse.cc Merge from 5.0-bugteam 2009-06-17 16:56:44 +02:00
sql_analyse.h Merge magare.gmz:/home/kgeorge/mysql/autopush/B26461-5.0-opt 2008-03-21 17:48:28 +02:00
sql_array.h
sql_base.cc Backport Bug#37148 to 5.1 2010-01-24 15:03:23 +08:00
sql_binlog.cc Bug#46640: output from mysqlbinlog command in 5.1 breaks replication 2009-10-14 09:39:05 +08:00
sql_bitmap.h
sql_builtin.cc.in
sql_cache.cc Bug#39253 Large query cache still freezes server after fix for bug #21074 2009-11-20 13:49:06 +01:00
sql_cache.h Bug#39253 Large query cache still freezes server after fix for bug #21074 2009-11-20 13:49:06 +01:00
sql_class.cc Bug #38883 (reopened): thd_security_context is not thread safe, crashes? 2009-12-01 14:38:40 +04:00
sql_class.h Backport Bug#37148 to 5.1 2010-01-24 15:03:23 +08:00
sql_client.cc
sql_connect.cc Manual merge. 2009-12-18 16:44:24 -02:00
sql_crypt.cc Bug#49141: Encode function is significantly slower in 5.1 compared to 5.0 2009-12-04 13:36:58 -02:00
sql_crypt.h Bug#49141: Encode function is significantly slower in 5.1 compared to 5.0 2009-12-04 13:36:58 -02:00
sql_cursor.cc 5.0-bugteam->5.1-bugteam merge 2008-12-10 18:16:21 +04:00
sql_cursor.h
sql_db.cc Fix for compiler warnings: 2010-01-28 19:51:40 -02:00
sql_delete.cc Backport Bug#37148 to 5.1 2010-01-24 15:03:23 +08:00
sql_derived.cc merged 5.0-bugteam to 5.1-bugteam 2009-05-27 18:19:44 +03:00
sql_do.cc
sql_error.cc Bug#29125 Windows Server X64: so many compiler warnings 2009-02-13 11:41:47 -05:00
sql_error.h
sql_handler.cc Merge from 5.0 2009-09-17 17:25:52 +02:00
sql_help.cc Merge from 5.0-bugteam 2009-06-17 16:56:44 +02:00
sql_insert.cc Backport Bug#37148 to 5.1 2010-01-24 15:03:23 +08:00
sql_lex.cc Bug #45640: optimizer bug produces wrong results 2010-02-06 23:54:30 +04:00
sql_lex.h Bug #45640: optimizer bug produces wrong results 2010-02-06 23:54:30 +04:00
sql_list.cc
sql_list.h Backport WL#3653 to 5.1 to enable bundled innodb plugin. 2009-06-10 10:59:49 +02:00
sql_load.cc Backport Bug#37148 to 5.1 2010-01-24 15:03:23 +08:00
sql_locale.cc Bug#43207 wrong LC_TIME names for romanian locale 2009-10-19 13:41:52 +05:00
sql_manager.cc Bug#38522: 5 seconds delay when closing application using embedded server 2008-12-04 19:41:53 +01:00
sql_map.cc
sql_map.h
sql_olap.cc
sql_parse.cc BUG#48632: Fix for Bug #23300 Has Not Been Backported 2010-02-05 17:01:09 +00:00
sql_partition.cc Backport Bug#37148 to 5.1 2010-01-24 15:03:23 +08:00
sql_partition.h Bug #42849: innodb crash with varying time_zone on partitioned 2009-12-13 23:29:50 +03:00
sql_plugin.cc Bug#48983: Bad strmake calls (length one too long) 2009-12-18 17:14:09 -02:00
sql_plugin.h Bug#19027 MySQL 5.0 starts even with Fatal InnoDB errors 2009-05-14 14:03:33 +02:00
sql_prepare.cc BUG#47418 RBR fails, failure with mixup of base/temporary/view 2010-01-16 15:44:24 +08:00
sql_profile.cc Bug #45287: phase 2 : 5.0 64 bit compilation warnings 2009-07-16 15:37:38 +03:00
sql_profile.h Backport WL#3653 to 5.1 to enable bundled innodb plugin. 2009-06-10 10:59:49 +02:00
sql_rename.cc Backport Bug#37148 to 5.1 2010-01-24 15:03:23 +08:00
sql_repl.cc BUG#50780: 'show binary logs' debug assertion when binary 2010-02-05 17:51:55 +00:00
sql_repl.h Merge dl145h.mysql.com:/data0/mkindahl/mysql-5.0-rpl 2008-03-14 18:38:54 +01:00
sql_select.cc Bug#45195 valgrind warnings about uninitialized values in store_record_in_cache() 2010-02-10 18:56:47 +04:00
sql_select.h Bug#45195 valgrind warnings about uninitialized values in store_record_in_cache() 2010-02-10 18:56:47 +04:00
sql_servers.cc Bug#33982 debug assertion and crash reloading grant tables after sighup or kill 2010-01-13 12:39:00 +01:00
sql_servers.h
sql_show.cc Bug#49501 Inefficient information_schema check (system collation), addon 2010-01-22 14:58:21 +04:00
sql_show.h Added "Sun Microsystems, Inc." to copyright headers on files modified 2008-11-10 21:21:49 +01:00
sql_sort.h
sql_state.c
sql_string.cc Bug# 30946: mysqldump silently ignores --default-character-set 2009-07-31 22:14:52 +05:00
sql_string.h Bug# 30946: mysqldump silently ignores --default-character-set 2009-07-31 22:14:52 +05:00
sql_table.cc Fix for compiler warnings: 2010-01-28 19:51:40 -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 Backport Bug#37148 to 5.1 2010-01-24 15:03:23 +08:00
sql_trigger.h Fix for 2009-01-14 18:50:51 +04:00
sql_udf.cc Manual merge with Conflicts: 2010-01-25 10:55:05 +08:00
sql_udf.h
sql_union.cc Bug #49734: Crash on EXPLAIN EXTENDED UNION ... ORDER BY <any non-const-function> 2009-12-22 17:52:15 +02:00
sql_update.cc BUG#49902 - SELECT returns incorrect results 2010-02-09 12:53:13 +04:00
sql_view.cc Backport Bug#37148 to 5.1 2010-01-24 15:03:23 +08:00
sql_view.h Bug#43385 Cannot ALTER DATABASE ... UPGRADE DATA DIRECTORY NAME when Views exist(addon) 2009-04-13 18:09:10 +05:00
sql_yacc.yy Bug#47974 'TYPE=storage_engine' is deprecated and will be 2010-02-09 11:30:50 +01:00
strfunc.cc Bug #43414 Parenthesis (and other) warnings compiling MySQL 2009-09-23 15:21:29 +02:00
structs.h A fix and a test case for 2009-11-03 20:45:52 +03:00
table.cc Merge fix for bug49902 to mysql-5.1-bugteam. 2010-02-09 15:43:44 +04:00
table.h BUG#49902 - SELECT returns incorrect results 2010-02-09 12:53:13 +04:00
thr_malloc.cc Merge from 5.0 2009-06-29 16:00:47 +02:00
time.cc Bug#47925: regression of range optimizer and date comparison in 5.1.39! 2009-11-02 13:24:07 +01:00
tzfile.h
tztime.cc Merge from 5.0-bugteam 2009-06-17 16:56:44 +02:00
tztime.h Backport of a 5.0.74 fix into 5.0.72sp1: 2009-01-12 17:40:29 +01:00
udf_example.c Merge from 5.0 2009-09-17 17:25:52 +02:00
udf_example.def
uniques.cc Merge from 5.0-bugteam 2009-06-17 16:56:44 +02:00
unireg.cc BUG#46483 - drop table of partitioned table may leave 2009-09-02 16:19:28 +05:00
unireg.h Auto-merge 2009-07-31 15:28:15 -04:00