MariaDB server is a community developed fork of MySQL server. Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry.
Find a file
unknown f9440588f5 Bug#33143: Incorrect ORDER BY for ROUND()/TRUNCATE() result
The ROUND(X, D) function would change the Item::decimals field during
execution to achieve the effect of a dynamic number of decimal digits.
This caused a series of bugs:
Bug #30617:Round() function not working under some circumstances in InnoDB
Bug #33402:ROUND with decimal and non-constant cannot round to 0 decimal places
Bug #30889:filesort and order by with float/numeric crashes server
Fixed by never changing the number of shown digits for DECIMAL when
used with a nonconstant number of decimal digits.


mysql-test/r/type_decimal.result:
  Bug#33143: Test result
mysql-test/t/type_decimal.test:
  Bug#33143: Test case
sql/item_func.cc:
  Bug#33143: 
  - Moved the DECIMAL_MAX_SCALE limitation to fix_length_and_dec.
  - Removed resetting of Item::decimals field.
  - set the frac field of the output value to current scale.
strings/decimal.c:
  Bug#33143: It is necessary to set all digits in the buffer following the 
  rounded one to zero, as they may now be displayed.
2008-01-14 16:16:36 +01:00
bdb Revert previous attempt to fix bug#27693, the files removed from the 2007-09-22 16:29:15 +02:00
BitKeeper
BUILD Do not use $static_link for GCOV builds, 2007-08-22 18:11:01 -06:00
client mysqldump.c, mysqldump.test, mysqldump.result: 2007-10-03 02:50:38 +05:00
cmd-line-utils
config/ac-macros Merge trift2.:/MySQL/M50/push-5.0 2007-09-13 23:42:17 +02:00
dbug
debian
Docs
extra Import yaSSL version 1.7.2 2007-08-28 10:35:55 +02:00
heap
include Fix for Bug#27970 "Fix for bug 24507 makes mysql_install_db fail" 2007-08-16 17:25:48 +03:00
innobase NULL MERGE this ChangeSet to 5.1 2007-08-15 17:20:54 -06:00
libmysql Merge mysql.com:/home/gluh/MySQL/Merge/5.0 2007-10-10 14:31:19 +05:00
libmysql_r
libmysqld
man
myisam Merge bk@192.168.21.1:mysql-4.1-opt 2007-10-05 15:48:42 +05:00
myisammrg
mysql-test Bug#33143: Incorrect ORDER BY for ROUND()/TRUNCATE() result 2008-01-14 16:16:36 +01:00
mysys avoid using GetTempFileName in a way it's documented to not work on windows 2007-09-27 08:56:06 +02:00
ndb testScanFilter.cpp: 2007-10-02 21:21:45 +02:00
netware Merge trift2.:/MySQL/M50/netware2-5.0 2007-08-24 23:40:36 +02:00
os2
pstack
regex
scripts Restore creation of test databases and the anonymous user which 2007-10-04 11:30:30 +02:00
server-tools
sql Bug#33143: Incorrect ORDER BY for ROUND()/TRUNCATE() result 2008-01-14 16:16:36 +01:00
sql-bench
sql-common
SSL
strings Bug#33143: Incorrect ORDER BY for ROUND()/TRUNCATE() result 2008-01-14 16:16:36 +01:00
support-files
tests Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0-opt 2007-09-28 23:27:23 +00:00
tools
VC++Files
vio Bug#28812 rpl_ssl fails due to assert in extra/yassl/src/socket_wrapper.cpp:117 2007-08-28 11:34:43 +02:00
win Adding batch files for building with nmake make files 2007-09-05 16:30:38 -05:00
zlib
.bzrignore Bug #30596 GROUP BY optimization gives wrong result order 2007-08-27 17:33:41 +02:00
.cvsignore
CMakeLists.txt
configure.in Raise version number after cloning 5.0.50 2007-09-26 19:15:42 +02:00
COPYING
EXCEPTIONS-CLIENT
Makefile.am
README

This is a release of MySQL, a dual-license SQL database server.
MySQL is brought to you by the MySQL team at MySQL AB.

License information can be found in these files:
- For GPL (free) distributions, see the COPYING file and
  the EXCEPTIONS-CLIENT file.
- For commercial distributions, see the LICENSE.mysql file.


For further information about MySQL or additional documentation, see:
- The latest information about MySQL: http://www.mysql.com
- The current MySQL documentation: http://dev.mysql.com/doc

Some manual sections of special interest:

- If you are migrating from an older version of MySQL, please read the
  "Upgrading from..." section first!
- To see what MySQL can do, take a look at the features section.
- For installation instructions, see the Installing and Upgrading chapter.
- For the new features/bugfix history, see the Change History appendix.
- For the currently known bugs/misfeatures (known errors) see the Problems
  and Common Errors appendix.
- For a list of developers and other contributors, see the Credits
  appendix.

A local copy of the MySQL Reference Manual can be found in the Docs
directory in GNU Info format.  You can also browse the manual online or
download it in any of several formats at the URL given earlier in this
file.

************************************************************

IMPORTANT:

Bug or error reports should be sent to http://bugs.mysql.com.