1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-10 01:22:48 +03:00
Files
mariadb-columnstore-engine/dbcon/mysql
Andrew Hutchings cd5e742a2a MCOL-3764 Fix RENAME TABLE
When ALTER TABLE ... ENGINE= is called the following happens:

1. A temporary table is created in the new engine with the real table
   name but a temporary file name supplied
2. A bulk insert is started from old to new table
3. The old table is dropped
4. The new table is renamed

For #1 we use the real table name instead of the temporary file name
(otherwise step #2 breaks), we were therefore trying to skip #4.
This broke regular RENAME TABLE commands.

With this patch we detect if the rename is for a temporary to real table
and skip it. Since this is the only instance where we support temporary
tables.

This patch also fixes issues with extracting table names from file
names and some other irrelevant stuff.

Longer term if we want to support temporary tables we need to store the
provided filename in our metadata since it could be different from table
name.
2020-02-06 11:52:38 +00:00
..
2016-01-06 14:08:59 -06:00
2016-01-06 14:08:59 -06:00
2016-01-06 14:08:59 -06:00
2016-07-15 10:49:57 -05:00
2016-01-06 14:08:59 -06:00
2016-01-06 14:08:59 -06:00
2020-02-06 11:52:38 +00:00
2020-02-04 20:44:31 +00:00
2020-02-05 11:10:54 -06:00
2019-12-19 18:15:16 +01:00
2016-07-19 10:46:58 -05:00