提交 5664d651 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Quote TABLE identifier

上级 bb49e9d8
......@@ -222,7 +222,7 @@ public class Update extends Prepared {
builder.append(",\n ");
}
Column c = columns.get(i);
builder.append(c.getName()).append(" = ");
builder.append(c.getSQL()).append(" = ");
expressionMap.get(c).getSQL(builder);
}
if (condition != null) {
......
......@@ -1568,7 +1568,7 @@ public class Recover extends Tool implements DataHandler {
writer.println("DELETE FROM " + name + ";");
writer.println("INSERT INTO " + name + " SELECT * FROM " + storageName + ";");
if (name.startsWith("INFORMATION_SCHEMA.LOBS")) {
writer.println("UPDATE " + name + " SET TABLE = " +
writer.println("UPDATE " + name + " SET \"TABLE\" = " +
LobStorageFrontend.TABLE_TEMP + ";");
deleteLobs = true;
}
......@@ -1595,7 +1595,7 @@ public class Recover extends Tool implements DataHandler {
writer.println("DROP ALIAS READ_BLOB_DB;");
writer.println("DROP ALIAS READ_CLOB_DB;");
if (deleteLobs) {
writer.println("DELETE FROM INFORMATION_SCHEMA.LOBS WHERE TABLE = " +
writer.println("DELETE FROM INFORMATION_SCHEMA.LOBS WHERE \"TABLE\" = " +
LobStorageFrontend.TABLE_TEMP + ";");
}
for (MetaRecord m : schema) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论