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 1cf3b96513 Bug#27321: Wrong subquery result in a grouping select.
The Item_outer_ref class based on the Item_direct_ref class was always used
to represent an outer field. But if the outer select is a grouping one and the 
outer field isn't under an aggregate function which is aggregated in that
outer select an Item_ref object should be used to represent such a field.
If the outer select in which the outer field is resolved isn't grouping then
the Item_field class should be used to represent such a field.
This logic also should be used for an outer field resolved through its alias
name.

Now the Item_field::fix_outer_field() uses Item_outer_field objects to
represent aliased and non-aliased outer fields for grouping outer selects
only.
Now the fix_inner_refs() function chooses which class to use to access outer
field - the Item_ref or the Item_direct_ref. An object of the chosen class
substitutes the original field in the Item_outer_ref object.
The direct_ref and the found_in_select_list fields were added to the
Item_outer_ref class.


mysql-test/t/subselect3.test:
  Some test cases were corrected after the fix for the bug#27321.
mysql-test/r/subselect3.result:
  Some test cases were corrected after the fix for the bug#27321.
mysql-test/t/subselect.test:
  Added a test case for the bug#27321: Wrong subquery result in a grouping select.
mysql-test/r/subselect.result:
  Added a test case for the bug#27321: Wrong subquery result in a grouping select.
  Some test cases were corrected after this fix.
sql/sql_union.cc:
  Bug#27321: Wrong subquery result in a grouping select.
  Cleanup of the inner_refs_list.
sql/sql_select.cc:
  Bug#27321: Wrong subquery result in a grouping select.
  Now the fix_inner_refs() function chooses which class to use to access outer
  field - the Item_ref or the Item_direct_ref. An object of the chosen class
  substitutes the original field in the Item_outer_ref object.
  A comment is corrected.
sql/item.cc:
  Bug#27321: Wrong subquery result in a grouping select.
  Now the Item_field::fix_outer_field() uses Item_outer_field objects to
  represent aliased and non-aliased outer fields for grouping outer selects
  only.
sql/item.h:
  Bug#27321: Wrong subquery result in a grouping select.
  The direct_ref and the found_in_select_list fields were added to the
  Item_outer_ref class.
2007-04-15 08:31:34 +04:00
bdb my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
BitKeeper Bug#25807: LOAD DATA INFILE does not work with Pipes 2007-02-13 16:35:29 -05:00
BUILD Merge bk@192.168.21.1:mysql-5.0 2007-03-08 21:42:41 +04:00
client Merge bk-internal.mysql.com:/home/bk/mysql-5.0-maint 2007-03-21 13:43:03 -04:00
cmd-line-utils Fixed compiler warnings. 2007-02-28 22:23:35 +02:00
config/ac-macros Fixed the make distcheck problem. We only really need to create libndb.ver if we are building Ndb. 2007-01-19 16:54:01 -08:00
dbug Merge bk-internal.mysql.com:/home/bk/mysql-5.0 2007-01-22 14:04:40 +02:00
Docs Merge mysql.com:/home/kent/bk/tmp/mysql-4.1-build 2007-02-28 22:33:29 +01:00
extra Many files: 2007-03-19 16:18:10 +01:00
heap Fixed compiler warnings 2007-01-22 15:52:15 +02:00
include Merge tsmith@bk-internal.mysql.com:/home/bk/mysql-5.0-runtime 2007-03-21 23:58:02 +01:00
innobase Bug#25765 too many dbg heap assertions on windows 2007-03-20 10:07:23 -04:00
libmysql Merge siva.hindu.god:/home/tsmith/m/bk/maint/mar05/50 2007-03-06 15:36:07 -07:00
libmysql_r my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
libmysqld bug #25492 (Invalid deallocation in mysql_stmt_fetch()) 2007-03-05 11:35:04 +04:00
man my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
myisam Removed tabs. 2007-03-14 02:30:05 +04:00
myisammrg my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
mysql-test Bug#27321: Wrong subquery result in a grouping select. 2007-04-15 08:31:34 +04:00
mysys Bug#23736 Pointer free error in mysqlbinlog 2007-03-20 10:34:25 -04:00
ndb Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.0-ndb 2007-03-22 11:26:18 +01:00
netware Merge pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.0-build-work 2007-03-20 13:44:47 +01:00
os2 my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
pstack my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
regex my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
scripts vio.vcproj, mysqld.vcproj, mysys.vcproj, libmysqld.vcproj, mysqldemb.vcproj: 2007-03-20 15:12:50 +01:00
server-tools Many files: 2007-03-19 16:18:10 +01:00
sql Bug#27321: Wrong subquery result in a grouping select. 2007-04-15 08:31:34 +04:00
sql-bench my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
sql-common Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-4.1-maint 2007-03-05 12:07:59 +04:00
SSL my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
strings Fixed compiler warnings (for linux and win32 and win64) 2007-02-22 16:59:57 +02:00
support-files Merge tsmith@bk-internal.mysql.com:/home/bk/mysql-5.0-build 2007-03-20 20:59:41 +01:00
tests Remove test/udf_test and test/udf_test.res, since udf's are nowadays 2007-03-15 15:52:04 +01:00
tools Fixed compiler warnings (for linux and win32 and win64) 2007-02-22 16:59:57 +02:00
VC++Files vio.vcproj, mysqld.vcproj, mysys.vcproj, libmysqld.vcproj, mysqldemb.vcproj: 2007-03-20 15:12:50 +01:00
vio Merge 192.168.0.5:mysql/bug25203/my50-bug25203 2007-02-06 21:55:39 +01:00
win Merge mjorgensen@bk-internal.mysql.com:/home/bk/mysql-5.0-sage 2007-01-11 09:19:32 +01:00
zlib my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
.bzrignore Merge bk-internal:/home/bk/mysql-5.0-maint 2007-03-21 14:30:47 +01:00
.cvsignore Import changeset 2000-07-31 21:29:14 +02:00
CMakeLists.txt my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
configure.in Raise version number after cloning 5.0.38 2007-03-15 22:28:31 +01:00
configure.in.rej Merge a88-113-38-195.elisa-laajakaista.fi:/home/my/bk/mysql-4.0 2007-01-22 03:33:59 +02:00
COPYING - manual.texi will be replaced with a manual written in DocBook/XML. This ChangeSet removes all 2005-04-13 11:51:38 +02:00
EXCEPTIONS-CLIENT EXCEPTIONS-CLIENT: 2007-03-14 18:28:16 +01:00
Makefile.am Added test options to Makefile.am including 2007-03-15 14:28:32 -07:00
README make_binary_distribution.sh: 2006-11-07 22:26:37 +01:00

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.