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

#5548 Database description reading fix (pg >= 9.4)


Former-commit-id: b20db0bc
上级 9472d1e1
......@@ -237,6 +237,7 @@ public class PostgreDatabase extends JDBCRemoteInstance<PostgreDataSource>
@Property(viewable = true, multiline = true, order = 100)
public String getDescription(DBRProgressMonitor monitor) throws DBException {
if (getDataSource().getServerType().supportsDatabaseDescription())
if (description != null) {
return description;
}
......
......@@ -99,4 +99,6 @@ public interface PostgreServerExtension
boolean supportsExplainPlanXML();
boolean supportsExplainPlanVerbose();
boolean supportsDatabaseDescription();
}
......@@ -317,6 +317,11 @@ public abstract class PostgreServerExtensionBase implements PostgreServerExtensi
return true;
}
@Override
public boolean supportsDatabaseDescription() {
return dataSource.isServerVersionAtLeast(9, 4);
}
public String createWithClause(PostgreTableRegular table, PostgreTableBase tableBase) {
StringBuilder withClauseBuilder = new StringBuilder();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册