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 0b8342ba4e Fixed bug #35193.
View definition as SELECT ... FROM DUAL WHERE ... has
valid syntax, but use of such view in SELECT or
SHOW CREATE VIEW syntax causes unexpected syntax error.

Server omits FROM DUAL clause when storing view body
string in a .frm file for further evaluation.
However, syntax of SELECT-witout-FROM query is more
restrictive than SELECT FROM DUAL syntax, and doesn't
allow the WHERE clause.

NOTE: this syntax difference is not documented.


View registration procedure has been modified to
preserve original structure of view's body.



mysql-test/r/view.result:
  Added test case for bug #35193.
mysql-test/t/view.test:
  Added test case for bug #35193.
sql/sql_select.cc:
  Fixed bug #35193.
  The st_select_lex::print function always omits FROM DUAL clause,
  even if original SELECT query has the WHERE clause.
  
  The mysql_register_view function uses this function to reconstruct
  a body of view's AS clause for further evaluation and stores that
  reconstructed clause in a .frm file.
  
  SELECT without FROM syntax is more restrictive than 
  SELECT FROM DUAL syntax: second one allows
  the WHERE clause, but first one is not.
  
  Use of this view in SELECT or SHOW CREATE VIEW queries
  causes unexpected syntax errors.
  
  
  The st_select_lex::print function has been modified to
  reconstruct FROM DUAL clause in queries when needed.
  
  
  TODO: Syntax difference is not documented and should be
  eliminated, however improvement of
  the SELECT-without-FROM syntax is not trivial and leads to
  significant modification of grammar file because of additional
  shift/reduce conflicts.
2008-03-26 22:43:12 +04:00
bdb Revert previous attempt to fix bug#27693, the files removed from the 2007-09-22 16:29:15 +02:00
BitKeeper Fix bug in BK trigger for sending changes to InnoDB devs. 2008-01-24 00:31:47 -07:00
BUILD Adding build scripts for Solaris 10 on AMD64. 2007-11-10 11:03:07 +01:00
client Merge bk@192.168.21.1:mysql-5.0-opt 2008-03-23 21:53:36 +04:00
cmd-line-utils use correct config_readline.h file 2008-01-03 14:26:41 +01:00
config/ac-macros Fix for bug #31254: "Max_data_length" truncated / reported wrong 2007-10-12 14:03:51 +04:00
dbug CMakeLists.txt, README, configure.js 2007-08-03 21:51:37 +02:00
Docs Makefile.am, configure.in: 2007-11-22 17:48:40 +01:00
extra Make this build on Windows. 2008-02-11 18:02:37 +01:00
heap Merge anubis.xiphis.org:/usr/home/antony/work/mysql-5.0-engines 2007-10-19 13:04:30 -07:00
include Bug #26461: Intrinsic data type bool (1 byte) redefined to BOOL (4 bytes) 2008-03-21 17:23:17 +02:00
innobase Applied InnoDB snapshot innodb-5.0-ss2095 2007-11-20 10:53:19 -07:00
libmysql Bug #25097 mysql_server_init fails silently if no errmsg.sys is present. 2008-02-27 12:42:43 +04:00
libmysql_r my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
libmysqld Bug #25097 mysql_server_init fails silently if no errmsg.sys is present. 2008-02-27 12:42:43 +04:00
man my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
myisam Merge mysql.com:/home/gluh/MySQL/Merge/5.0 2007-12-13 14:52:49 +04:00
myisammrg BUG#26976 - Missing table in merge not noted in related error msg + 2007-06-06 04:42:41 +05:00
mysql-test Fixed bug #35193. 2008-03-26 22:43:12 +04:00
mysys Fix for bug #31781: multi-table UPDATE with temp-pool enabled fails 2008-03-03 17:34:06 +03:00
ndb Merge trift2.:/MySQL/M50/mysql-5.0 2008-02-22 16:36:09 +01:00
netware sp_head.cc: 2007-12-14 18:23:11 +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 Merge kaamos.(none):/data/src/mysql-5.0 2008-03-12 10:59:15 +03:00
server-tools Merge tnurnberg@bk-internal.mysql.com:/home/bk/mysql-5.0-maint 2007-09-15 04:45:20 +02:00
sql Fixed bug #35193. 2008-03-26 22:43:12 +04:00
sql-bench my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
sql-common Bug #25097 mysql_server_init fails silently if no errmsg.sys is present. 2008-02-27 12:42:43 +04:00
SSL SSL/Makefile.am mysql-test/Makefile.am: 2007-07-27 17:39:07 +02:00
strings Merge mhansson@bk-internal:/home/bk/mysql-5.0-opt 2008-01-17 18:15:53 +01:00
support-files Bug #28555 Upgrading MySQL Fails to shut down old server and kills socket file 2008-02-18 12:03:39 -07:00
tests Bug#35103 mysql_client_test::test_bug29948 causes sporadic failures 2008-03-13 12:14:14 +03:00
tools Avoid the name conflict between the system-provided "md5.h" and the MySQL one 2007-07-19 14:14:03 +02:00
VC++Files Fix for bug #32221: bug25714, mytest, mysql_client_test complaints and 2007-11-19 18:59:25 +03:00
vio Bug#33050 5.0.50 fails many SSL testcases 2008-02-07 08:48:28 +01:00
win Merge ramayana.hindu.god:/home/tsmith/m/bk/50 2007-09-28 10:54:49 -06:00
zlib CMakeLists.txt, README, configure.js 2007-08-03 21:51:37 +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 Bug #26461: Intrinsic data type bool (1 byte) redefined to BOOL (4 bytes) 2008-03-21 17:23:17 +02:00
configure.in Raise the version number after cloning 5.0.58 2008-03-03 21:19:58 +01: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 Merge debian.(none):/MySQL/M50/indent-5.0 2007-12-11 20:47:31 +01: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.