Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.0(EOL)
-
None
-
10.0.25, 10.0.26
Description
build_table_filename() doesn't support temporary tables. Indeed, it always builds the path as datadir/db_name/table_name, while temporary tables are in the tmpdir. This shows up in various DDL statements that use temporary tables:
create temporary table t1 (a int); |
rename table t1 to t2; |
This fails. Or
create temporary table t1(a int not null primary key, b int, key(b)) engine=innodb; |
--error 1005
|
alter table t1 add foreign key(b) references t1(a); |
drop table t1; |
--source include/restart_mysqld.inc
|
This test case succeeds but leaves an orphant temporary frm in the tmpdir (and it causes a warning on restart).
Note: when this is fixed, please uncomment the corresponding test in innodb-fk-warnings.test
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Assignee | Alexey Botchkov [ holyfoot ] |
Sprint | 10.0.25 [ 50 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Sprint | 10.0.25 [ 50 ] | 10.0.25, 10.0.26 [ 50, 73 ] |
Status | In Progress [ 3 ] | Stalled [ 10000 ] |
Sprint | 10.0.25, 10.0.26 [ 50, 73 ] | 10.0.25, 10.0.26, 10.1.16 [ 50, 73, 76 ] |
Status | Stalled [ 10000 ] | In Progress [ 3 ] |
Assignee | Alexey Botchkov [ holyfoot ] | Sergei Golubchik [ serg ] |
Status | In Progress [ 3 ] | In Review [ 10002 ] |
Assignee | Sergei Golubchik [ serg ] | Alexey Botchkov [ holyfoot ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Status | Stalled [ 10000 ] | In Progress [ 3 ] |
issue.field.resolutiondate | 2016-07-18 08:06:27.0 | 2016-07-18 08:06:27.496 |
Fix Version/s | 10.0.27 [ 22017 ] | |
Fix Version/s | 10.0 [ 16000 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
Sprint | 10.0.25, 10.0.26, 1.0.2 [ 50, 73, 76 ] | 10.0.25, 10.0.26 [ 50, 73 ] |
Workflow | MariaDB v3 [ 70907 ] | MariaDB v4 [ 149438 ] |
Fixing patch:
http://lists.askmonty.org/pipermail/commits/2016-July/009541.html