fix more unquoted db and table names

This commit is contained in:
servertood
2008-11-23 10:44:25 +00:00
parent a3ba4ea7e9
commit 45a2cfdb36
3 changed files with 3 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ DB db = context.get("db");
db.begin();
db.execute("use " + context.get("currentDB"));
db.execute("drop table " + table);
db.execute("drop table `" + table + "`");
db.flushStatement("show tables from `" + context.get("currentDB") + "`");
db.end();

View File

@@ -129,7 +129,7 @@ else if ("Drop Database" == who)
{
args().put("dbToDrop", node.getText());
DB db = context.get("db");
db.execute("drop database " + node.getText());
db.execute("drop database `" + node.getText() + "`");
node.remove();
schemaTree.select(root);
}

View File

@@ -131,7 +131,7 @@ else if ("Drop Database" == who)
{
args().put("dbToDrop", node.getText());
DB db = context.get("db");
db.execute("drop database " + node.getText());
db.execute("drop database `" + node.getText() + "`");
node.remove();
schemaTree.select(root);
}