提交 5c73a65c authored 作者: Thomas Mueller's avatar Thomas Mueller

Escaping

上级 637e2df0
......@@ -35,7 +35,7 @@ public abstract class TableBase extends Table {
super(data.schema, data.id, data.tableName, data.persistIndexes, data.persistData);
this.tableEngine = data.tableEngine;
this.globalTemporary = data.globalTemporary;
if(data.tableEngineParams != null) {
if (data.tableEngineParams != null) {
this.tableEngineParams = data.tableEngineParams;
}
setTemporary(data.temporary);
......@@ -85,17 +85,16 @@ public abstract class TableBase extends Table {
d = MVTableEngine.class.getName();
}
if (d == null || !tableEngine.endsWith(d)) {
buff.append("\nENGINE \"");
buff.append(tableEngine);
buff.append('\"');
buff.append("\nENGINE ");
buff.append(StringUtils.quoteIdentifier(tableEngine));
}
}
if(!tableEngineParams.isEmpty()) {
if (!tableEngineParams.isEmpty()) {
buff.append("\nWITH ");
buff.resetCount();
for (String parameter : tableEngineParams) {
buff.appendExceptFirst(", ");
buff.append("\""+parameter+"\"");
buff.append(StringUtils.quoteIdentifier(parameter));
}
}
if (!isPersistIndexes() && !isPersistData()) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论