提交 36fc6d7e 编写于 作者: S serge-rider

#8352 Exasol: disable view source auto-format

上级 fae324f1
......@@ -32,7 +32,6 @@ import org.jkiss.dbeaver.model.impl.jdbc.cache.JDBCStructCache;
import org.jkiss.dbeaver.model.meta.Property;
import org.jkiss.dbeaver.model.runtime.DBRProgressMonitor;
import org.jkiss.dbeaver.model.runtime.VoidProgressMonitor;
import org.jkiss.dbeaver.model.sql.format.SQLFormatUtils;
import org.jkiss.dbeaver.model.struct.DBSEntityAssociation;
import org.jkiss.dbeaver.model.struct.DBSObject;
import org.jkiss.dbeaver.model.struct.DBSObjectState;
......@@ -106,17 +105,14 @@ public class ExasolView extends ExasolTableBase implements ExasolSourceObject, D
ExasolUtils.quoteString(this.getName())
);
try (JDBCResultSet dbResult = stmt.executeQuery(sql))
{
Boolean read = dbResult.next();
if (read) {
try (JDBCResultSet dbResult = stmt.executeQuery(sql)) {
if (dbResult.next()) {
this.owner = JDBCUtils.safeGetString(dbResult, "VIEW_OWNER");
this.text = JDBCUtils.safeGetString(dbResult, "VIEW_TEXT");
this.hasRead = true;
} else {
this.owner = "SYS OBJECT";
this.text = "No View Text for system objects available";
this.text = "-- No View Text for system objects available";
}
this.hasRead = true;
}
......@@ -178,7 +174,8 @@ public class ExasolView extends ExasolTableBase implements ExasolSourceObject, D
@Property(hidden = true, editable = true, updatable = true, order = -1)
public String getObjectDefinitionText(DBRProgressMonitor monitor, Map<String, Object> options) throws DBException {
read();
return SQLFormatUtils.formatSQL(getDataSource(), this.text);
//return SQLFormatUtils.formatSQL(getDataSource(), this.text);
return this.text;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册