提交 9a8aa593 编写于 作者: L LonwoLonwo

#10261 table DDL fix and refactoring

上级 de38167e
......@@ -71,7 +71,7 @@ public class ExasolUtils {
ExasolTable exasolTable) throws DBException {
StringBuilder ddlOutput = new StringBuilder();
ddlOutput.append("CREATE TABLE \"").append(exasolTable.getSchema().getName()).append("\".\"").append(exasolTable.getName()).append("\" (");
ddlOutput.append("CREATE TABLE ").append(exasolTable.getFullyQualifiedName(DBPEvaluationContext.DDL)).append(" (");
try (JDBCSession session = DBUtils.openMetaSession(monitor, exasolTable, "Get Table DDL")) {
try (JDBCStatement dbStat = session.createStatement()) {
......@@ -128,7 +128,7 @@ public class ExasolUtils {
//partitioning
ddlOutput.append(getPartitionDdl(exasolTable, monitor));
ddlOutput.append(";\n");
//ddlOutput.append(";\n"); //partition expression has ; already
//primary key
Collection<ExasolTableUniqueKey> pks = exasolTable.getConstraints(monitor);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册