public inbox for [email protected]  
help / color / mirror / Atom feed
From: Nikhil Mohite <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: [pgAdmin4][RM-5793]: Unexpected behaviour with long-running operation.
Date: Fri, 19 Feb 2021 13:08:56 +0530
Message-ID: <CAOBg0AMKJDDA3KCRb3vYc0Wftt7N9xU0YaEvWQ4w-RBG48bZLw@mail.gmail.com> (raw)

Hi Team,

Please find the attached patch for RM-5793: Unexpected behaviour with
long-running operation.
This patch only resolves the issue related to the query tool, (This is not
a full fix for this issue.)  Earlier we are not able to use the query tool
when any other long-running operation is In-Progress.


-- 
*Thanks & Regards,*
*Nikhil Mohite*
*Software Engineer.*
*EDB Postgres* <https://www.enterprisedb.com/;
*Mob.No: +91-7798364578.*


Attachments:

  [application/octet-stream] RM_5793.patch (677B, 3-RM_5793.patch)
  download | inline diff:
diff --git a/web/pgadmin/tools/sqleditor/__init__.py b/web/pgadmin/tools/sqleditor/__init__.py
index 40442ff5..c8ee43c3 100644
--- a/web/pgadmin/tools/sqleditor/__init__.py
+++ b/web/pgadmin/tools/sqleditor/__init__.py
@@ -593,7 +593,8 @@ def fetch_pg_types(columns_info, trans_obj):
     # to execute another query otherwise we'll lose query result.
 
     manager = get_driver(PG_DEFAULT_DRIVER).connection_manager(trans_obj.sid)
-    default_conn = manager.connection(did=trans_obj.did)
+    default_conn = manager.connection(conn_id=trans_obj.conn_id,
+                                      did=trans_obj.did)
 
     # Connect to the Server if not connected.
     res = []


view thread (2+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: [pgAdmin4][RM-5793]: Unexpected behaviour with long-running operation.
  In-Reply-To: <CAOBg0AMKJDDA3KCRb3vYc0Wftt7N9xU0YaEvWQ4w-RBG48bZLw@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox