drizzledump dies with dashes in table names
Bug #1012288 reported by
Matt Harrison
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Fix Released
|
Medium
|
Stewart Smith |
Bug Description
When running drizzledump on a database with dashes in some of the tablenames it dies with.
-- Retrieving indexes for my-db-table...
Error executing query: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-db-table' at line 1
This simple patch should do the trick
--- client/
+++ client/
@@ -269,8 +269,9 @@
if (verbose)
std::cerr << _("-- Retrieving indexes for ") << tableName << "..." << std::endl;
- query="SHOW INDEXES FROM ";
+ query="SHOW INDEXES FROM `";
query.
+ query.append("`");
Related branches
lp:~stewart/drizzle/bug1012288
- Drizzle Trunk: Pending requested
-
Diff: 13 lines (+2/-1)1 file modifiedclient/drizzledump_mysql.cc (+2/-1)
Changed in drizzle: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
looks like a good fix