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

#359 PG server version detect fix

上级 92a10393
......@@ -178,7 +178,11 @@ public class PostgreDataSource extends JDBCDataSource implements DBSObjectSelect
try {
String serverVersionStr = JDBCUtils.queryString(session, "SHOW server_version");
if (!CommonUtils.isEmpty(serverVersionStr)) {
this.serverVersion = new Version(serverVersionStr);
try {
this.serverVersion = new Version(serverVersionStr);
} catch (Exception e) {
log.debug("Can't parse server version [" + serverVersionStr + "]");
}
}
} catch (SQLException e) {
log.debug(e);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册