提交 6fab3fe7 编写于 作者: S Serge Rider

#6576 CockroachDB: tablespace_location fix

上级 7587e48b
......@@ -1029,7 +1029,7 @@ public class PostgreDatabase extends JDBCRemoteInstance<PostgreDataSource>
throws SQLException {
return session.prepareStatement(
"SELECT t.oid,t.*" +
(owner.getDataSource().isServerVersionAtLeast(9, 2) ? ",pg_tablespace_location(t.oid) loc" : "") +
(owner.getDataSource().getServerType().supportsTeblespaceLocation() ? ",pg_tablespace_location(t.oid) loc" : "") +
"\nFROM pg_catalog.pg_tablespace t " +
"\nORDER BY t.oid"
);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册