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
MySQL Build Team 9d827fef37 Backport into build-200909301147-5.0.84sp1
> ------------------------------------------------------------
> revno: 2791.2.3
> revision-id: joro@sun.com-20090827114042-h55n7qp9990bl6ge
> parent: anurag.shekhar@sun.com-20090831073231-e55y1hsck6n08ux8
> committer: Georgi Kodinov <joro@sun.com>
> branch nick: B46749-5.0-bugteam
> timestamp: Thu 2009-08-27 14:40:42 +0300
> message:
>   Bug #46749: Segfault in add_key_fields() with outer subquery level 
>     field references
>   
>   This error requires a combination of factors : 
>   1. An "impossible where" in the outermost SELECT
>   2. An aggregate in the outermost SELECT
>   3. A correlated subquery with a WHERE clause that includes an outer 
>   field reference as a top level WHERE sargable predicate
>   
>   When JOIN::optimize detects an "impossible WHERE" it will bail out
>   without doing the rest of the work and initializations. It will not
>   call make_join_statistics() as well.  And make_join_statistics fills 
>   in various structures for each table referenced.
>   When processing the result of the "impossible WHERE" the query must
>   send a single row of data if there are aggregate functions in it.
>   In this case the server marks all the aggregates as having received 
>   no rows and calls the relevant Item::val_xxx() method on the SELECT
>   list. However if this SELECT list happens to contain a correlated 
>   subquery this subquery is evaluated in a normal evaluation mode.
>   And if this correlated subquery has a reference to a field from the 
>   outermost "impossible where" SELECT the add_key_fields will mistakenly
>   consider the outer field reference as a "local" field reference when 
>   looking for sargable predicates.
>   But since the SELECT where the outer field reference refers to is not
>   completely initialized due to the "impossible WHERE" in this level
>   we'll get a NULL pointer reference.
>   Fixed by making a better condition for discovering if a field is "local"
>   to the SELECT level being processed. 
>   It's not enough to look for OUTER_REF_TABLE_BIT in this case since 
>   for outer references to constant tables the Item_field::used_tables() 
>   will return 0 regardless of whether the field reference is from the 
>   local SELECT or not.
2009-09-30 14:22:38 +02:00
.bzr-mysql tree name change 2009-07-07 10:49:38 +03:00
bdb Tool fix, needed for "compile-dist" to succeed on Solaris: 2009-01-13 14:52:22 +01:00
BitKeeper Merge community up to enterprise, thus ending the community-server 2009-05-06 09:06:32 -04:00
BUILD Backport of a 5.0.74 fix into 5.0.72sp1: 2009-01-12 16:46:19 +01:00
client Merge from 5.0-bt 2009-06-29 15:17:01 +02:00
cmd-line-utils Merge from 5.0-bt 2009-06-29 15:17:01 +02:00
config/ac-macros Accept wide-character version of libncurses also. 2009-03-11 11:46:21 -04:00
dbug Bug #45286: compilation warnings on mysql-5.0-bugteam on MacOSX 2009-06-05 15:05:26 +03:00
Docs Makefile.am, configure.in: 2007-11-22 17:48:40 +01:00
extra Merge from 5.0-bt 2009-06-29 15:17:01 +02:00
heap Bug#29125 Windows Server X64: so many compiler warnings 2009-02-10 17:47:54 -05:00
include Bug#43572 Handle failures from hash_init 2009-06-19 17:29:21 +05:30
innobase Additional Fix for BUG#40565 - Update Query Results in "1 Row Affected" 2009-06-29 17:57:22 +05:30
libmysql auto-merge 2009-03-19 09:44:58 -04:00
libmysql_r my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
libmysqld Merge chunk from trunk. 2008-07-10 14:50:07 -04:00
man Bug#37098 Get rid of "Installed (but unpackaged)" files in the RPM build 2008-08-25 21:07:41 +02:00
myisam merging 2009-04-28 14:48:54 +05:00
myisammrg BUG#32047 - 'Spurious' errors while opening MERGE tables 2009-02-04 15:46:23 +04:00
mysql-test Backport into build-200909301147-5.0.84sp1 2009-09-30 14:22:38 +02:00
mysys Bug#43572 Handle failures from hash_init 2009-06-19 17:29:21 +05:30
ndb Bug#42430 Final commit to 5.0-bugteam 2009-04-16 11:40:51 +02:00
netware Handle renamed nwbootstrap -> nwbuild 2009-02-06 15:07:45 +01:00
os2 Avoid the name conflict between the system-provided "md5.h" and the MySQL one 2007-07-19 14:14:03 +02: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 Bug #36654: mysqld_multi cannot start instances with different versions 2009-06-19 15:52:20 +03:00
server-tools Merge from 5.0-bt 2009-06-29 15:17:01 +02:00
sql Backport into build-200909301147-5.0.84sp1 2009-09-30 14:22:38 +02:00
sql-bench Use /usr/bin/perl as standard Perl install path (bug#44643) 2009-05-09 23:43:48 +02:00
sql-common Bug#41190: shared memory connections do not work in Vista, if server started from cmdline 2009-06-10 10:59:59 -03:00
SSL SSL/Makefile.am mysql-test/Makefile.am: 2007-07-27 17:39:07 +02:00
strings Merge from 5.0-bt 2009-06-29 15:17:01 +02:00
support-files fixed the build-tags command 2009-06-12 17:06:59 +03:00
tests Bug #45790 Potential DoS vector: Writing of user input to log 2009-07-01 14:09:44 +02:00
tools Bug #42434: license of mysys MD5 implementation is not GPL-compatible 2009-03-09 20:57:03 +02:00
VC++Files Merge chunk from trunk. 2008-07-10 14:47:53 -04:00
vio Bug#33899: Deadlock in mysql_real_query with shared memory connections 2009-03-26 20:17:27 -03:00
win Updates to build with community features enabled for community builds. 2009-05-20 23:04:34 +02:00
zlib The header "config.h" needs to be included "early" to control other headers. 2008-10-13 14:23:39 +02:00
.bzrignore patch for bug#32496 (2nd) with ansi conformant and Mysql test case. 2007-11-26 21:28:01 +01:00
.cvsignore Import changeset 2000-07-31 21:29:14 +02:00
CMakeLists.txt Updates to build with community features enabled for community builds. 2009-05-20 23:04:34 +02:00
configure.in Set version number for mysql-5.0.84sp1 release 2009-09-30 13:53:41 +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
INSTALL-SOURCE Makefile.am: 2007-11-02 12:59:45 +01:00
INSTALL-WIN-SOURCE Makefile.am: 2007-11-02 12:59:45 +01:00
Makefile.am Bug#36788 Multiple funcs_1 'trig' tests are failing on vanilla builds 2008-06-02 21:57:11 +02: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.