[MDEV-15868] 'CREATE TABLE t3 LIKE t2' drops foreign key constraint Created: 2018-04-14 Updated: 2018-04-15 Resolved: 2018-04-15 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Documentation |
| Affects Version/s: | N/A |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | T.Peter | Assignee: | Ian Gilfillan |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | create_table, foreign-keys | ||
| Environment: |
ubuntu 16.04 server |
||
| Description |
|
Simple Example:
`SHOW CREATE TABLE t2;` is correct:
'SHOW CREATE TABLE t3;' shows that t3 is missing the foreign key constraint:
|
| Comments |
| Comment by T.Peter [ 2018-04-14 ] |
|
Strange things happen. Looks like this has been the case all along!? |
| Comment by Elena Stepanova [ 2018-04-14 ] |
|
Right, as you found out yourself, it's documented and thus expected behavior. |
| Comment by Ian Gilfillan [ 2018-04-15 ] |
|
Documented on https://mariadb.com/kb/en/library/create-table/ |