mariadb/sql
Alexey Kopytov afb2b6de68 Fix for bug #43432: Union on floats does unnecessary rounding
UNION could convert fixed-point FLOAT(M,D)/DOUBLE(M,D) columns  
to FLOAT/DOUBLE when aggregating data types from the SELECT  
substatements. While there is nothing particularly wrong with  
this behavior, especially when M is greater than the hardware  
precision limits, it could be confusing in cases when all  
SELECT statements in a union have the same  
FLOAT(M,D)/DOUBLE(M,D) columns with equal precision  
specifications listed in the same position.  
  
Since the manual is quite vague on what data type should be  
returned in such cases, the bug was fixed by implementing the  
most 'expected' behavior: do not convert FLOAT(M,D)/DOUBLE(M,D)  
to anything else if all SELECT statements in a UNION have the  
same precision for that column.
2009-03-27 13:12:50 +03:00
..
examples Bug#39616: Missing quotes from .CSV crashes server 2008-11-18 11:31:03 +05:30
share
.cvsignore
add_errmsg
client_settings.h
CMakeLists.txt Bug#40280: Message compiler(mc.exe) needed to compile MySQL on windows. 2008-10-23 15:28:53 +02:00
custom_conf.h
derror.cc
des_key_file.cc
discover.cc
field.cc Fix for bug #43432: Union on floats does unnecessary rounding 2009-03-27 13:12:50 +03:00
field.h
field_conv.cc
filesort.cc
frm_crypt.cc
gen_lex_hash.cc
gstream.cc
gstream.h
ha_archive.cc
ha_archive.h
ha_berkeley.cc
ha_berkeley.h
ha_blackhole.cc
ha_blackhole.h
ha_federated.cc Fix for bug#40875: Memory leak in FEDERATED handler 2008-11-20 14:08:36 +04:00
ha_federated.h
ha_heap.cc
ha_heap.h
ha_innodb.cc Applying InnoDB snashot 5.0-ss4007, part 2. Fixes 2009-03-02 17:57:09 -07:00
ha_innodb.h
ha_myisam.cc
ha_myisam.h
ha_myisammrg.cc
ha_myisammrg.h
ha_ndbcluster.cc
ha_ndbcluster.h
ha_ndbcluster_cond.cc
ha_ndbcluster_cond.h
handler.cc Fix for bug#40984: backport fix from 39585 into 5.0 2008-11-25 10:22:02 +04:00
handler.h Fix for bug#40984: backport fix from 39585 into 5.0 2008-11-25 10:22:02 +04:00
hash_filo.cc
hash_filo.h
hostname.cc
init.cc
item.cc Fix for bug #43432: Union on floats does unnecessary rounding 2009-03-27 13:12:50 +03:00
item.h Bug#37601 Cast Is Not Done On Row Comparison 2009-02-19 17:20:44 +04:00
item_buff.cc
item_cmpfunc.cc Bug#37601 Cast Is Not Done On Row Comparison 2009-02-19 17:20:44 +04:00
item_cmpfunc.h rollback of bug #40761 fix 2008-12-12 14:59:10 +04:00
item_create.cc
item_create.h
item_func.cc BUG#36737 - having + full text operator crashes mysql 2009-02-12 13:49:44 +04:00
item_func.h auto merge 2009-01-16 16:48:41 +02:00
item_geofunc.cc
item_geofunc.h
item_row.cc
item_row.h
item_strfunc.cc Bug #42434: license of mysys MD5 implementation is not GPL-compatible 2009-03-09 20:57:03 +02:00
item_strfunc.h bug#35558 Wrong server metadata blows up the client 2008-12-09 14:00:43 +04:00
item_subselect.cc
item_subselect.h
item_sum.cc Bug #43354: Use key hint can crash server in explain extended query 2009-03-11 14:10:44 +02:00
item_sum.h backported the fix for bug #34773 to 5.0 2008-12-09 20:35:02 +02:00
item_timefunc.cc Bug#37575 UCASE fails on monthname 2008-12-23 18:08:04 +04:00
item_timefunc.h Bug#42525: TIMEDIFF function 2009-02-06 18:25:08 +01:00
item_uniq.cc
item_uniq.h
key.cc
lex.h
lex_symbol.h
lock.cc
log.cc Fix PB warnings for parenthesis and valgrind leak report. 2008-12-11 11:06:50 +00:00
log_event.cc BUG#37051 Replication rules not evaluated correctly 2009-03-05 18:10:44 +08:00
log_event.h BUG#37051 Replication rules not evaluated correctly 2009-03-05 18:10:44 +08:00
Makefile.am Bug#40280: Message compiler(mc.exe) needed to compile MySQL on windows. 2008-10-23 15:28:53 +02:00
matherr.c
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 Bug#37553: MySql Error Compare TimeDiff & Time 2008-11-26 09:28:17 +01:00
my_decimal.h
my_lock.c
mysql_priv.h Fix for bug #43432: Union on floats does unnecessary rounding 2009-03-27 13:12:50 +03:00
mysqld.cc Fixed a build failure on Ubuntu 8.10 introduced by the patch 2009-02-25 10:36:11 +02:00
mysqld_suffix.h
net_serv.cc
nt_servc.cc Bug #20430 mysqld.exe windows service stuck in "SERVICE_STOP_PENDING" 2008-11-14 02:01:41 +01:00
nt_servc.h Bug #20430 mysqld.exe windows service stuck in "SERVICE_STOP_PENDING" 2008-11-14 02:01:41 +01:00
opt_range.cc Bug #41610: key_infix_len can be overwritten causing some group by queries to 2009-02-27 15:25:06 +02:00
opt_range.h
opt_sum.cc backported the fix for bug #34773 to 5.0 2008-12-09 20:35:02 +02:00
parse_file.cc Merge from dev tree. 2009-01-14 11:15:11 -05:00
parse_file.h Bug #40021: Renaming view fails, archived .frm for view is 2008-11-14 21:25:57 +04:00
password.c
procedure.cc
procedure.h
protocol.cc fixed a typo 2009-03-09 12:49:18 +02:00
protocol.h
records.cc
repl_failsafe.cc
repl_failsafe.h
set_var.cc Bug#41456 SET PASSWORD hates CURRENT_USER() 2008-12-24 19:14:59 +04:00
set_var.h Bug #37339: SHOW VARIABLES not working properly with multi-byte datadir 2008-11-28 16:25:16 +02:00
slave.cc
slave.h
sp.cc
sp.h
sp_cache.cc
sp_cache.h
sp_head.cc
sp_head.h
sp_pcontext.cc
sp_pcontext.h
sp_rcontext.cc
sp_rcontext.h
spatial.cc
spatial.h
sql_acl.cc Bug #41354: Access control is bypassed when all columns 2009-02-26 19:00:44 +02:00
sql_acl.h
sql_analyse.cc
sql_analyse.h
sql_array.h
sql_base.cc Bug #41354: Access control is bypassed when all columns 2009-02-26 19:00:44 +02:00
sql_bitmap.h
sql_cache.cc Manual merge 2009-03-06 11:49:39 +01:00
sql_cache.h
sql_class.cc Manual merge 2009-03-06 11:49:39 +01:00
sql_class.h BUG#37051 Replication rules not evaluated correctly 2009-03-05 18:10:44 +08:00
sql_client.cc
sql_crypt.cc
sql_crypt.h
sql_cursor.cc Bug#37956 memory leak and / or crash with geometry and prepared statements! 2008-12-10 18:13:11 +04:00
sql_cursor.h
sql_db.cc Bug #40021: Renaming view fails, archived .frm for view is 2008-11-14 21:25:57 +04:00
sql_delete.cc
sql_derived.cc
sql_do.cc
sql_error.cc
sql_error.h
sql_handler.cc Bug#41110: crash with handler command when used concurrently with alter table 2009-02-24 10:15:21 +01:00
sql_help.cc
sql_insert.cc
sql_lex.cc
sql_lex.h
sql_list.cc
sql_list.h
sql_load.cc
sql_locale.cc Bug#37575 UCASE fails on monthname 2008-12-23 18:08:04 +04:00
sql_manager.cc
sql_manager.h
sql_map.cc
sql_map.h
sql_olap.cc
sql_parse.cc BUG#37051 Replication rules not evaluated correctly 2009-03-05 18:10:44 +08:00
sql_prepare.cc
sql_rename.cc
sql_repl.cc
sql_repl.h
sql_select.cc Bug #42419: Server crash with "Pure virtual method called" on two concurrent 2009-02-19 17:30:03 +02:00
sql_select.h Bug #42037: Queries containing a subquery with DISTINCT and 2009-02-05 13:30:39 +04:00
sql_show.cc Bug#40345 MySQLDump prefixes view name with database name when view references other db 2009-02-25 15:44:50 +04:00
sql_sort.h
sql_state.c
sql_string.cc Merge from dev tree. 2009-02-14 12:09:35 +03:00
sql_string.h
sql_table.cc Recommit for merging and pushing 2009-02-27 16:11:15 +02:00
sql_test.cc
sql_trigger.cc Bug #40021: Renaming view fails, archived .frm for view is 2008-11-14 21:25:57 +04:00
sql_trigger.h
sql_udf.cc
sql_udf.h
sql_union.cc
sql_update.cc BUG#37051 Replication rules not evaluated correctly 2009-03-05 18:10:44 +08:00
sql_view.cc After-push commit for bug #33461 to make valgrind happy: 2008-12-01 12:14:02 +04:00
sql_view.h
sql_yacc.yy Bug #33813: Schema names are case-sensitive in DROP FUNCTION 2009-02-12 16:36:43 +02:00
stacktrace.c
stacktrace.h
strfunc.cc
structs.h Bug#41131 "Questions" fails to increment - ignores statements instead stored procs(5.0 ver) 2008-12-29 16:06:53 +04:00
table.cc Bug #42434: license of mysys MD5 implementation is not GPL-compatible 2009-03-09 20:57:03 +02:00
table.h Bug #40021: Renaming view fails, archived .frm for view is 2008-11-14 21:25:57 +04:00
thr_malloc.cc
time.cc
tzfile.h
tztime.cc Bug #39920: MySQL cannot deal with Leap Second expression in string literal. 2008-12-01 16:18:35 +02:00
tztime.h Bug #39920: MySQL cannot deal with Leap Second expression in string literal. 2008-12-01 16:18:35 +02:00
udf_example.c
udf_example.def
uniques.cc
unireg.cc Merge from dev tree. 2009-01-14 11:15:11 -05:00
unireg.h
watchdog_mysqld