mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure that when execute_scalar is run for multiple queries in single SQL then the last query result is returned.
This commit is contained in:
parent
dfa367a127
commit
415e9c0ac5
@ -987,6 +987,11 @@ WHERE db.datname = current_database()""")
|
||||
except Exception:
|
||||
print("EXCEPTION.....")
|
||||
|
||||
# If multiple queries are run, make sure to reach
|
||||
# the last query result
|
||||
while cur.nextset():
|
||||
pass
|
||||
|
||||
self.row_count = cur.get_rowcount()
|
||||
if cur.get_rowcount() > 0:
|
||||
res = cur.fetchone()
|
||||
|
Loading…
Reference in New Issue
Block a user