mariadb/sql
unknown a17b3dcbe3 Fix bug#13356 resolve_const_item() wasn't able to handle Item_row items.
resolve_const_item() assumed to be not called for Item_row items. For
ensuring that DBUG_ASSERT(0) was set there.

This patch adds section for Item_row items. If it can it recursively calls
resolve_const_item() for each item the Item_row contains. If any of the
contained items is null then whole Item_row substitued by Item_null. Otherwise
it just returns.


sql/item.cc:
  Fix bug#13356 resolve_const_item() wasn't able to handle Item_row items.
  
  Added section to resolve_const_item() for Item_row items. If it can it
  recursively calls resolve_const_item() for each item the Item_row contains. If
  any of the contained items is null then Item_row is substituted by Item_null.
  Otherwise it just returns.
  Comment moved closer to function it belongs to.
mysql-test/t/select.test:
  Test case for bug#13356 resolve_const_item() wasn't able to handle Item_row items.
mysql-test/r/select.result:
  Test case for bug#13356 resolve_const_item() wasn't able to handle Item_row items.
2005-09-28 00:58:12 +04:00
..
examples Merge mysqldev@production.mysql.com:jimw/mysql-4.1-sco 2005-09-12 10:19:56 -07:00
share
.cvsignore
add_errmsg
client_settings.h
custom_conf.h
derror.cc
des_key_file.cc
discover.cc
field.cc Fixed compiler warnings 2005-07-28 21:25:05 +03:00
field.h
field_conv.cc a fix (bug #7589: Decimal types are ignored when updating data from another column). 2005-09-21 14:32:19 +05:00
filesort.cc Review fixes since last pull 2005-09-12 18:48:17 +03:00
frm_crypt.cc
gen_lex_hash.cc
gstream.cc
gstream.h
ha_berkeley.cc
ha_berkeley.h
ha_blackhole.cc ha_blackhole.cc: 2005-08-30 02:46:03 +02:00
ha_blackhole.h ha_blackhole changes, same patch as http://lists.mysql.com/internals/27878, per brian 2005-08-26 02:09:56 +02:00
ha_heap.cc
ha_heap.h
ha_innodb.cc ha_innodb.cc: 2005-08-31 14:27:44 +03:00
ha_innodb.h
ha_isam.cc
ha_isam.h
ha_isammrg.cc
ha_isammrg.h
ha_myisam.cc BUG#12232: Addressing docs team feedback: s/inequal/unequal/ 2005-09-24 01:39:50 +04:00
ha_myisam.h
ha_myisammrg.cc
ha_myisammrg.h
ha_ndbcluster.cc Fixed gcc error on AMD64: cast from 'char*' to 'unsigned int' loses precision 2005-09-26 16:49:18 +02:00
ha_ndbcluster.h ndb - imlp. show engine ndb status; 2005-09-19 15:35:07 +02:00
handler.cc
handler.h BUG#12232: Add a server option to treat NULL values as equal when calculating MyISAM index 2005-09-21 02:18:29 +04:00
hash_filo.cc
hash_filo.h
hostname.cc Backport of JimW's localhost patch to 4.1 tree. 2005-09-02 17:07:05 -07:00
init.cc
item.cc Fix bug#13356 resolve_const_item() wasn't able to handle Item_row items. 2005-09-28 00:58:12 +04:00
item.h Ensure that hex strings are used as integers in cast(... signed/unsigned) 2005-09-21 17:28:25 +03:00
item_buff.cc
item_cmpfunc.cc Review fixes since last pull 2005-09-12 18:48:17 +03:00
item_cmpfunc.h Merge serg@bk-internal.mysql.com:/home/bk/mysql-4.1/ 2005-09-08 23:11:15 +02:00
item_create.cc
item_create.h
item_func.cc Bug #6172 RAND(a) should only accept constant values as arguments(2nd version) 2005-09-06 16:19:59 +05:00
item_func.h
item_geofunc.cc
item_geofunc.h
item_row.cc
item_row.h
item_strfunc.cc Fix crash in DES_DECRYPT(NULL). (Bug #12757) 2005-08-25 12:34:42 -07:00
item_strfunc.h
item_subselect.cc fixed convertion and handling IN subqueries with rows (BUG#11867) 2005-08-13 07:45:14 +03:00
item_subselect.h
item_sum.cc Fix for BUG#12882 - min/max inconsistent on empty table. 2005-09-21 09:49:19 +03:00
item_sum.h func_gconcat.result, func_gconcat.test: 2005-09-06 22:20:11 -07:00
item_timefunc.cc
item_timefunc.h Fix bug#12266 GROUP BY DATE(LEFT(column,8)) returns result strings with reduced 2005-08-04 18:05:33 +04:00
item_uniq.cc
item_uniq.h
key.cc
lex.h
lex_symbol.h
lock.cc Merge mysql.com:/home/my/mysql-4.0 2005-07-27 13:24:59 +03:00
log.cc
log_event.cc BUG#12542: Added comments 2005-09-01 17:58:00 +02:00
log_event.h Bug#11338 Fixes from review (identical functionality). 2005-08-19 14:49:34 -04:00
Makefile.am
matherr.c
mf_iocache.cc
my_lock.c
mysql_priv.h fix for BUG#11139 (multi-delete with alias breaking replication if table rules are 2005-09-14 06:31:38 -06:00
mysqld.cc BUG#12232: Addressing docs team feedback: s/inequal/unequal/ 2005-09-24 01:39:50 +04:00
mysqld_suffix.h
net_serv.cc Merge selena.:H:/MYSQL/src/#05588-mysql-4.0 2005-09-07 14:59:41 +04:00
nt_servc.cc
nt_servc.h
opt_range.cc item_cmpfunc.h: 2005-09-06 18:03:08 +04:00
opt_range.h
opt_sum.cc Fixed error found during review of new pushed code 2005-09-25 21:22:23 +03:00
password.c
procedure.cc
procedure.h
protocol.cc
protocol.h
protocol_cursor.cc
records.cc
repl_failsafe.cc
repl_failsafe.h
set_var.cc BUG#12232: Add a server option to treat NULL values as equal when calculating MyISAM index 2005-09-21 02:18:29 +04:00
set_var.h
slave.cc fix for BUG#11139 (multi-delete with alias breaking replication if table rules are 2005-09-14 06:31:38 -06:00
slave.h updates for BUG#10780 - fixed slave I/O thread running status to No while attempting 2005-07-29 21:00:28 -06:00
spatial.cc
spatial.h
sql_acl.cc Merge bk-internal.mysql.com:/home/bk/mysql-4.1 2005-09-01 17:01:25 +04:00
sql_acl.h Fix for bug #12423 "Deadlock when doing FLUSH PRIVILEGES and GRANT in 2005-09-01 16:52:59 +04:00
sql_analyse.cc Merged code. Removed unneccessary repeating. 2005-09-13 18:11:51 +03:00
sql_analyse.h
sql_base.cc Merge mysql.com:/home/mydev/mysql-4.0-4000 2005-09-13 20:47:00 +02:00
sql_bitmap.h
sql_cache.cc Merge sanja.is.com.ua:/home/bell/mysql/bk/work-4.0 2005-09-06 12:18:23 +03:00
sql_cache.h Merge sanja.is.com.ua:/home/bell/mysql/bk/work-4.0 2005-09-06 12:18:23 +03:00
sql_class.cc Fixes bug #12517. Clear user variables and replication events before 2005-08-30 17:22:19 +04:00
sql_class.h BUG#12232: Add a server option to treat NULL values as equal when calculating MyISAM index 2005-09-21 02:18:29 +04:00
sql_client.cc
sql_crypt.cc
sql_crypt.h
sql_db.cc Fix for bug #6008: MySQL does not create warnings when creating database and using IF NOT EXISTS 2005-09-12 17:09:19 +05:00
sql_delete.cc Fixed error found during review of new pushed code 2005-09-25 21:22:23 +03:00
sql_derived.cc
sql_do.cc
sql_error.cc
sql_handler.cc
sql_help.cc
sql_insert.cc Bug#10109 2005-08-07 03:16:15 +01:00
sql_lex.cc Fixed error found during review of new pushed code 2005-09-25 21:22:23 +03:00
sql_lex.h ndb - imlp. show engine ndb status; 2005-09-19 15:35:07 +02:00
sql_list.cc
sql_list.h
sql_load.cc Fixed error found during review of new pushed code 2005-09-25 21:22:23 +03:00
sql_manager.cc
sql_manager.h
sql_map.cc
sql_map.h
sql_olap.cc
sql_parse.cc Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1 2005-09-20 09:50:10 +02:00
sql_prepare.cc Fixed error found during review of new pushed code 2005-09-25 21:22:23 +03:00
sql_rename.cc
sql_repl.cc
sql_repl.h
sql_select.cc Fix for BUG#13419: In "ref" optimizer, take into account that item=Item_func_in(x,y) is 2005-09-23 13:43:20 +04:00
sql_select.h
sql_show.cc Bug#12920 - key_read_requests counter appears to re-set 2005-09-14 13:18:16 +02:00
sql_sort.h
sql_state.c
sql_string.cc
sql_string.h
sql_table.cc Fix for bug #6008: MySQL does not create warnings when creating database and using IF NOT EXISTS 2005-09-12 17:09:19 +05:00
sql_test.cc Bug#12920 - key_read_requests counter appears to re-set 2005-09-14 13:18:16 +02:00
sql_udf.cc
sql_udf.h
sql_union.cc Review of new pushed code 2005-08-09 00:13:49 +03:00
sql_update.cc Fixed error found during review of new pushed code 2005-09-25 21:22:23 +03:00
sql_yacc.yy Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-4.1 2005-09-22 11:46:54 +05:00
stacktrace.c
stacktrace.h
strfunc.cc
structs.h Bug#12920 - key_read_requests counter appears to re-set 2005-09-14 13:18:16 +02:00
table.cc Review of new code: 2005-07-27 13:05:30 +03:00
table.h after pull cleanup 2005-08-22 13:20:02 +04:00
thr_malloc.cc
time.cc
tzfile.h
tztime.cc
tztime.h
udf_example.cc
uniques.cc
unireg.cc Review of new code: 2005-07-27 13:05:30 +03:00
unireg.h
watchdog_mysqld