From 30a0fb1cb332495d1bc2560f644bda4fea1306d5 Mon Sep 17 00:00:00 2001 From: Khushboo Vashi Date: Tue, 1 Aug 2023 13:57:52 +0530 Subject: [PATCH] Fix the issue where query tool window turns blank if the user tries to generate a graph on the result. #6500 --- web/pgadmin/utils/driver/psycopg3/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/pgadmin/utils/driver/psycopg3/connection.py b/web/pgadmin/utils/driver/psycopg3/connection.py index cf13a4c88..7c5ba9b47 100644 --- a/web/pgadmin/utils/driver/psycopg3/connection.py +++ b/web/pgadmin/utils/driver/psycopg3/connection.py @@ -1342,7 +1342,7 @@ WHERE db.datname = current_database()""") more_results = True while more_results: - if self.row_count > 0: + if cur.get_rowcount() > 0: result = [] try: if records == -1: