| Bug #33140 | When federated tables are not enabled, ENGINE=federated silently behaves wrongly | ||
|---|---|---|---|
| Submitted: | 11 Dec 2007 13:41 | Modified: | 18 Dec 2007 12:23 |
| Reporter: | River Tarnell | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server: Federated storage engine | Severity: | S3 (Non-critical) |
| Version: | 5.0.51 | OS: | Solaris (Solaris 10 11/06) |
| Assigned to: | CPU Architecture: | Any | |
[11 Dec 2007 13:41]
River Tarnell
[11 Dec 2007 13:48]
Peter Laursen
Does SQL_MODE for that server has 'NO_ENGINE_SUBSTITUTION'? I guess not!! MySQL per default creates table using the default engine. With other words default is SQL_MODE <> 'NO_ENGINE_SUBSTITUTION'. I also think your default engine is InnoDB? But definitely if InnoDB is 'silently' used, InnoDB should handle the table correctly! (this is not an official reply .. I am no MySQL person!)
[11 Dec 2007 13:52]
Peter Laursen
MySQL per default creates table using the default engine. add: .. if the specified engine is not available.
[12 Dec 2007 5:59]
Valeriy Kravchuk
Please, send your my.cnf file content.
[18 Dec 2007 11:58]
MySQL Verification Team
Thank you for the bug report. You have in your my.cnf file: default_table_type = InnoDB and please see Peter's comments about sql_mode regarding the engine.
[18 Dec 2007 12:06]
Peter Laursen
I think that ENGINE SUBSTITUION should always be disabled for FEDERATED engine, as the CREATE TABLE statement for FEDERATED and other TABLES are not compatible! @miguel: can you change to feature request or will I have to create a new report?
[18 Dec 2007 12:23]
River Tarnell
The problem is not only creating new tables (although I think this is dubious default behaviour, I see it's not a bug.) The other problem is that _existing_ federated tables, when the server is running with federated tables disabled (which is easy to do by accident, because they aren't in the default build) are silently converted to non-functional InnoDB tables with absolutely no indication of what's wrong.
[18 Dec 2007 14:10]
Peter Laursen
I think that if you want the MySQL people to read your posts you will have to change the status of this report!
