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 d64f605e48 Fixed bug #21231: wrong results for a simple query with a
a non-correlated single-row subquery over information schema.

The function get_all_tables filling all information schema
tables reset lex->sql_command to SQLCOM_SHOW_FIELDS. After
this the function could evaluate partial conditions related to
some columns. If these conditions contained a subquery over
information schema it led to a wrong evaluation and a wrong 
result set.
This bug was already fixed in 5.1.
This patch follows the way how it was done in 5.1 where
the value of lex->sql_command is set to SQLCOM_SHOW_FIELDS
in get_all_tables only for the calls of the function 
open_normal_and_derived_tables and is restored after these
calls.


mysql-test/r/information_schema.result:
  Added a test case for bug #21231.
mysql-test/t/information_schema.test:
  Added a test case for bug #21231.
2006-07-24 19:05:46 -07:00
bdb BUG#15734: Fix undefined awk behaviour breaking compilation on Debian. 2005-12-14 13:09:37 +01:00
BitKeeper pekka - checkout:get (4.1) 2006-07-04 13:51:35 +02:00
BUILD Merge mysql.com:/Users/kent/mysql/bk/mysql-4.1-new 2006-06-17 15:42:24 +02:00
client Merge moonbone.local:/work/tmp_merge-4.1-opt-mysql 2006-07-18 21:32:25 +04:00
cmd-line-utils Merge neptunus.(none):/home/msvensson/mysql/bug16557/my50-bug16557 2006-02-21 08:58:19 +01:00
config/ac-macros Merge acurtis@bk-internal.mysql.com:/home/bk/mysql-5.0-engines 2006-06-28 10:31:03 -07:00
dbug Fix two Valgrind memory leak warnings. 2006-05-15 18:07:18 +02:00
Docs Merge mysql.com:/home/tomash/src/mysql_ab/tmp_merge 2006-05-06 11:18:42 +04:00
extra Fixed some dsp files. 2006-06-23 18:21:34 -07:00
heap Merge mysql.com:/home/my/mysql-4.1 2006-06-30 19:15:18 +03:00
include Merge bodhi.local:/opt/local/work/mysql-5.0-root 2006-07-07 22:09:43 +04:00
innobase Applied innodb-5.0-ss609 snapshot. 2006-06-06 23:37:42 +04:00
libmysql Merge mysql.com:/home/my/mysql-4.1 2006-06-30 19:15:18 +03:00
libmysql_r Bug#19575 MySQL-shared-5.0.21-0.glibc23 causes segfault in SSL_library_init 2006-05-31 16:19:06 +02:00
libmysqld Merge bodhi.local:/opt/local/work/tmp_merge 2006-07-08 02:30:07 +04:00
man - Removed obsolete and outdated man page files from the man 2005-10-27 14:51:58 +02:00
myisam Merge bk-internal.mysql.com:/home/bk/mysql-5.0 2006-07-08 21:45:02 +04:00
myisammrg BUG#17314: Can't use index_merge/intersection for MERGE tables 2006-02-11 21:51:43 +03:00
mysql-test Fixed bug #21231: wrong results for a simple query with a 2006-07-24 19:05:46 -07:00
mysys Merge mysql.com:/home/my/mysql-4.1 2006-06-30 02:35:52 +03:00
ndb Merge tkatchaounov@bk-internal.mysql.com:/home/bk/mysql-5.0-opt 2006-07-21 13:04:40 +03:00
netware mwldnlm, mwccnlm, mwasmnlm: 2006-07-03 16:44:17 +02:00
os2 Merge 2005-09-29 03:20:31 +02:00
pstack Makefile.am, configure.in: 2005-09-24 15:51:45 +02:00
regex Bug#19407 Test 'func_regexp' fails on Windows x64 2006-06-19 22:19:05 -04:00
scripts Merge tkatchaounov@bk-internal.mysql.com:/home/bk/mysql-5.0-opt 2006-07-21 13:04:40 +03:00
server-tools mysql.spec.sh: 2006-06-30 02:49:28 +02:00
sql Fixed bug #21231: wrong results for a simple query with a 2006-07-24 19:05:46 -07:00
sql-bench Set thread_stack after return from end_thread() 2005-12-03 18:13:06 +02:00
sql-common Merge mysql.com:/usr/home/bar/mysql-4.1.b7192 2006-07-07 16:27:38 +05:00
SSL Remove client-req-pem and server-req.pem 2006-05-03 11:53:16 +02:00
strings Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0-opt 2006-07-13 18:03:43 +04:00
support-files support-files/mysql.spec.sh : Fix a typing error. 2006-07-10 12:03:44 +02:00
tests Merge zippy.(none):/home/cmiller/work/mysql/merge/mysql-5.0 2006-07-13 11:11:20 -04:00
tools Bug#19575 MySQL-shared-5.0.21-0.glibc23 causes segfault in SSL_library_init 2006-05-31 16:19:06 +02:00
VC++Files Merge ibabaev@bk-internal.mysql.com:/home/bk/mysql-5.0-opt 2006-07-14 14:45:23 -07:00
vio Bug#19575 MySQL-shared-5.0.21-0.glibc23 causes segfault in SSL_library_init 2006-05-31 16:19:06 +02:00
zlib Changes after initial patch to #15787 2006-01-23 21:35:11 +03:00
.bzrignore Merge bodhi.local:/opt/local/work/tmp_merge 2006-07-08 02:30:07 +04:00
.cvsignore Import changeset 2000-07-31 21:29:14 +02:00
configure.in Merge zippy.(none):/home/cmiller/work/mysql/merge/mysql-5.0 2006-07-13 11:11:20 -04: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
Makefile.am Merge 2005-11-04 02:17:11 +01:00
README README: 2006-04-01 04:13:33 +02: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.
- 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.