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.
  • MariaDB\ 71.8%
  • C++ 16.4%
  • C 10.4%
  • Shell 0.5%
  • Perl 0.4%
  • Other 0.3%
Find a file
unknown 50c8c206fc Fixed bug#13575: SP funcs in select with distinct/group and order by can
produce wrong data

By default Item_sp_func::val_str() returns string from it's result_field 
internal buffer. When grouping is present Item_copy_string is used to 
store SP function result, but it doesn't additionally buffer the result.
When the next record is read, internal buffer is overwritten, due to
this Item_copy_string::val_str() will have wrong data. Thus producing
weird query result.

The Item_func_sp::val_str() now makes a copy of returned value to prevent
occasional corruption.


mysql-test/t/sp.test:
  Added test case for bug#13575: SP funcs in select with distinct/group and order by can
  produce wrong data
mysql-test/r/sp.result:
  Added test case for bug#13575: SP funcs in select with distinct/group and
      order by can produce wrong data
sql/item_func.h:
  Fixed bug#13575: SP funcs in select with distinct/group and order by can
      produce wrong data
      The Item_func_sp::val_str() now makes a copy of returned value to prevent
      occasinal corruption.
2006-03-10 13:53:00 +03:00
bdb
BitKeeper
BUILD
client Merge bk-internal.mysql.com:/home/bk/mysql-5.0 2006-03-07 21:47:41 +03:00
cmd-line-utils
config/ac-macros
dbug
Docs
extra
heap
include
innobase
libmysql Revert the changeset for Bug#16144 "mysql_stmt_attr_get type error": 2006-03-05 00:38:54 +03:00
libmysql_r
libmysqld compilation fixes 2006-03-06 22:08:29 +01:00
man
myisam
myisammrg
mysql-test Fixed bug#13575: SP funcs in select with distinct/group and order by can 2006-03-10 13:53:00 +03:00
mysys Merge mysql.com:/home/mydev/mysql-4.1 2006-03-04 14:06:52 +01:00
ndb
netware
os2
pstack
regex
scripts
server-tools
sql Fixed bug#13575: SP funcs in select with distinct/group and order by can 2006-03-10 13:53:00 +03:00
sql-bench
sql-common
SSL
strings
support-files
tests Revert the changeset for Bug#16144 "mysql_stmt_attr_get type error": 2006-03-05 00:38:54 +03:00
tools
VC++Files
vio
zlib
.bzrignore compilation fixes 2006-03-06 22:08:29 +01:00
.cvsignore
configure.in Porting fix that allows others to include compiled code with different parsers. 2006-03-09 10:09:52 -08:00
COPYING
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.
- For commercial distributions, see the MySQLEULA.txt 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 Installation chapter.
- For future plans, see the TODO appendix.
- For the new features/bugfix history, see the News appendix.
- For the currently known bugs/misfeatures (known errors) see the problems
  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.