From 47e9d73531c804fba7b0196c8873a0f7ab5fe202 Mon Sep 17 00:00:00 2001 From: Farooq Khalid <80970505+FarooqWW@users.noreply.github.com> Date: Wed, 16 Nov 2022 16:10:26 -0500 Subject: [PATCH] Update MainFrame.java Replacing the deprecated pg 9 with new condition to allow pg14 and onward. This change is needed because waiting column was removed from pg_stat_activity table and that was causing issues while trying to connect to pg14 database. --- src/org/ash/gui/MainFrame.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/ash/gui/MainFrame.java b/src/org/ash/gui/MainFrame.java index 76983ff..dd9f793 100644 --- a/src/org/ash/gui/MainFrame.java +++ b/src/org/ash/gui/MainFrame.java @@ -366,7 +366,7 @@ else if (versionOracleDB.startsWith("11")) { } else if (versionOracleDB.startsWith("9.")) { this.database = new ASHDatabasePG95(this.model); } else { - this.database = new ASHDatabasePG95(this.model); + this.database = new ASHDatabasePG13(this.model); } this.collectorUI = new CollectorUI(this.database, this.latency);