1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00
Files
mariadb/mysql-test/t
unknown 196b616acc BUG#28248 - mysqldump results with MERGE ... UNION=() cannot be executed
When there are no underlying tables specified for a merge table,
SHOW CREATE TABLE outputs a statement that cannot be executed. The
same is true for mysqldump (it generates dumps that cannot be
executed).

This happens because SQL parser does not accept empty UNION() clause.

This patch changes the following:
- it is now possible to execute CREATE/ALTER statement with
  empty UNION() clause.
- the same as above, but still worth noting: it is now possible to
  remove underlying tables mapping using ALTER TABLE ... UNION=().
- SHOW CREATE TABLE does not output UNION() clause if there are
  no underlying tables specified for a merge table. This makes
  mysqldump slightly smaller.


mysql-test/r/merge.result:
  A test case for BUG#28248.
mysql-test/t/merge.test:
  A test case for BUG#28248.
sql/ha_myisammrg.cc:
  Do not output UNION clause in SHOW CREATE TABLE, when there are
  no underlying tables defined.
sql/sql_yacc.yy:
  Make underlying table list for MERGE engine optional.
  
  As for MERGE engine empty underlying tables list is valid, it should
  be valid for the parser as well.
  
  This change is mostly needed to restore dumps made by earlier MySQL
  versions. Also with this fix it is possible to remove underlying
  tables mapping by using ALTER TABLE ... UNION=().
2008-03-14 19:38:22 +04:00
..
2007-08-29 12:44:43 +02:00
2008-01-27 16:41:29 +01:00
2007-11-06 13:53:26 +02:00
2007-11-06 20:31:40 +02:00
2007-08-07 05:35:20 -04:00
2007-04-10 16:55:48 +03:00
2007-07-23 23:35:43 -07:00
2007-06-28 16:03:01 -07:00
2007-06-28 16:03:01 -07:00
2007-07-06 11:35:10 -07:00
2007-07-06 11:35:10 -07:00
2007-11-24 15:02:29 +04:00
2007-07-11 18:45:35 -07:00
2007-06-21 21:39:52 -04:00
2007-06-20 14:21:48 +05:00
2007-11-02 13:40:34 +03:00
2007-11-02 13:40:34 +03:00
2007-08-31 16:59:07 +05:00
2007-08-31 16:59:07 +05:00
2007-11-05 20:18:22 +01:00
2007-10-26 08:42:33 +02:00
2008-01-27 16:41:29 +01:00
2007-11-05 20:18:22 +01:00
2008-01-22 14:18:47 +01:00
2007-06-01 17:49:01 +04:00
2007-11-20 20:15:20 +04:00
2007-06-01 17:49:01 +04:00
2007-06-21 16:55:52 +02:00
2007-06-01 18:04:25 +04:00
2007-06-22 09:28:38 +05:00
2008-01-31 12:17:40 +01:00
2007-05-31 17:30:56 +05:00
2007-11-18 00:02:55 +04:00
2007-09-24 12:42:44 +02:00
2007-08-22 15:43:16 +03:00
2008-01-23 13:26:41 -07:00
2008-01-23 13:26:41 -07:00
2007-06-06 18:55:21 +05:00
2007-04-17 12:32:01 +02:00
2007-07-22 18:26:16 -07:00
2007-07-15 21:51:36 +04:00
2007-03-29 09:08:30 +05:00
2007-06-03 14:46:09 +04:00
2007-04-23 17:15:51 +03:00