提交 0a8abcd6 编写于 作者: S Serge Rider

#5548 PG: descrption read fix

上级 b20db0bc
...@@ -246,7 +246,10 @@ public class PostgreDatabase extends JDBCRemoteInstance<PostgreDataSource> ...@@ -246,7 +246,10 @@ public class PostgreDatabase extends JDBCRemoteInstance<PostgreDataSource>
description = JDBCUtils.queryString(session, "select description from pg_shdescription " description = JDBCUtils.queryString(session, "select description from pg_shdescription "
+ "join pg_database on objoid = pg_database.oid where datname = ?", getName()); + "join pg_database on objoid = pg_database.oid where datname = ?", getName());
} catch (SQLException e) { } catch (SQLException e) {
throw new DBException("Error reading database description ", e, getDataSource()); log.debug("Error reading database description ", e);
}
if (description == null) {
description = "";
} }
return description; return description;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册