Bug #11936 | Lock table failing create table ....select | ||
---|---|---|---|
Submitted: | 14 Jul 2005 12:46 | Modified: | 17 Jul 2005 18:36 |
Reporter: | Disha | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S2 (Serious) |
Version: | 5.0.7-beta-nt/5.0.10 BK | OS: | Any (any) |
Assigned to: | Igor Babaev | CPU Architecture: | Any |
[14 Jul 2005 12:46]
Disha
[14 Jul 2005 14:15]
MySQL Verification Team
Verified also on Linux and updating version.
[17 Jul 2005 18:36]
Igor Babaev
The manual (13.4.6) says: When you use LOCK TABLES, you must lock all tables that you are going to use in your queries. While the locks obtained with a LOCK TABLES statement are in effect, you cannot access any tables that were not locked by the statement. Also, you cannot use a locked table multiple times in one query --- use aliases for that. Note that in that case, you must get a lock for each alias separately. Apprently you can't use CREATE TABLE after LOCK TABLES as the created table will not be locked. So the reported case cannot be qualified as a bug.