[MDEV-744] LP:986731 - sql-bench/test-table-elimination fails with SQL syntax error in LOCK TABLES if executed with --lock-tables Created: 2012-04-22 Updated: 2012-10-31 Resolved: 2012-10-31 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.3.9 |
| Fix Version/s: | 5.5.28a, 5.3.10, 5.2.13, 5.1.66 |
| Type: | Bug | Priority: | Trivial |
| Reporter: | Elena Stepanova | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
Initially reported in the KB as http://kb.askmonty.org/en/test-table-elimination-fails. If sql-bench/test-table-elimination is started with --lock-tables (or --fast), it attempts to execute the following command: LOCK TABLES elim_facts, elim_attr1, elim_attr2 WRITE and reasonably fails with a syntax error, as it is not a valid statement: each table should be followed by a lock type separately. The following change fixes this particular problem 95c95 but then another one reveals: testing full facts facts table This happens because the view elim_current_facts addresses the table elim_facts through its alias F, which is not locked explicitly. So, I also added the view itself into the LOCK statement: 95c95 Now it passes. bzr version-info According to the script code, should also be reproducible on 5.2-5.5. To reproduce,
|
| Comments |
| Comment by Rasmus Johansson (Inactive) [ 2012-04-22 ] |
|
Launchpad bug id: 986731 |
| Comment by Sergei Petrunia [ 2012-10-31 ] |
|
Fixed in 5.3 |