Skip to content

Commit

Permalink
[Bug][api] An error occurred while trying to access the Postgres data…
Browse files Browse the repository at this point in the history
…base (#14574)

Signed-off-by: hoey94 <[email protected]>
(cherry picked from commit 1ba0aec)
  • Loading branch information
hoey94 authored and zhongjiajie committed Jul 20, 2023
1 parent 4508ca3 commit e3e9b13
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -666,8 +666,9 @@ public Map<String, Object> getDatabases(Integer datasourceId) {
}
if (dataSource.getType() == DbType.POSTGRESQL) {
rs = connection.createStatement().executeQuery(Constants.DATABASES_QUERY_PG);
} else {
rs = connection.createStatement().executeQuery(Constants.DATABASES_QUERY);
}
rs = connection.createStatement().executeQuery(Constants.DATABASES_QUERY);
tableList = new ArrayList<>();
while (rs.next()) {
String name = rs.getString(1);
Expand Down

0 comments on commit e3e9b13

Please sign in to comment.