Bug #24898 | No suitable error code for 'resource in use' in DROP/ALTER/RENAME | ||
---|---|---|---|
Submitted: | 8 Dec 2006 7:51 | Modified: | 3 Apr 2009 11:35 |
Reporter: | Jan Lindström | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Errors | Severity: | S4 (Feature request) |
Version: | 5.0&5.1 | OS: | Any (Any) |
Assigned to: | CPU Architecture: | Any |
[8 Dec 2006 7:51]
Jan Lindström
[20 Dec 2006 14:07]
Sergei Golubchik
Another - also perfectly logical - behaviour for DROP in the second client, would be to wait on a lock, saying that IX lock on a table is not compatible with "drop lock" (even if there's no physical "drop lock"). Eventually it'll time out and return an error "lock timed out". You prefer to return an error at once - ok, it could be considered a "nowait" lock, or a lock attempt with zero timeout. Still "lock timed out" error here is appropriate.