提交 61421ad5 编写于 作者: S Serge Rider

PG database init fix


Former-commit-id: cbe684a2
上级 5713c338
......@@ -128,7 +128,7 @@
<items label="%tree.procedure_columns.node.name" itemLabel="%tree.column.node.name" path="column" property="parameters" navigable="false"/>
</items>
</folder>
<folder type="org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence" label="%tree.sequences.node.name" icon="#sequences" description="Sequences">
<folder type="org.jkiss.dbeaver.ext.postgresql.model.PostgreSequence" label="%tree.sequences.node.name" icon="#sequences" description="Sequences" if="object.dataSource.isServerVersionAtLeast(10, 0)">
<items label="%tree.sequence.node.name" path="sequence" property="sequences" icon="#sequence"/>
</folder>
<folder type="org.jkiss.dbeaver.ext.postgresql.model.PostgreDataType" label="%tree.types.node.name" icon="#data_types" description="Data types">
......
......@@ -151,7 +151,7 @@ public class PostgreTableManager extends PostgreTableManagerBase implements DBEO
PostgreTableRegular table = (PostgreTableRegular) tableBase;
try {
if (!alter) {
if (table.isHasOids()) {
if (table.getDataSource().getServerType().supportsOids() && table.isHasOids()) {
ddl.append("\nWITH (\n\tOIDS=").append(table.isHasOids() ? "TRUE" : "FALSE");
ddl.append("\n)");
}
......
......@@ -103,10 +103,12 @@ public class PostgreDatabase extends JDBCRemoteInstance<PostgreDataSource> imple
}
private void initCaches() {
/*
if (!getDataSource().isServerVersionAtLeast(8, 1)) {
// Roles not supported
roleCache.setCache(Collections.emptyList());
}
*/
}
public PostgreDatabase(DBRProgressMonitor monitor, PostgreDataSource dataSource, String databaseName)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册