File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
web/pgadmin/tools/sqleditor Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1080,7 +1080,7 @@ def poll(trans_id):
10801080 rows_affected = conn .rows_affected ()
10811081
10821082 st , result = \
1083- conn .async_fetchmany_2darray (data_result_rows_per_page + 1
1083+ conn .async_fetchmany_2darray (data_result_rows_per_page + 1
10841084 if trans_obj .server_cursor
10851085 else data_result_rows_per_page
10861086 )
@@ -1203,13 +1203,12 @@ def poll(trans_id):
12031203 data_obj ['db_id' ] = trans_obj .did \
12041204 if trans_obj is not None and hasattr (trans_obj , 'did' ) else 0
12051205
1206-
12071206 page_size = rows_fetched_to - rows_fetched_from + 1
12081207
12091208 # Check the next recordset/page is available or not for the server cursor
12101209 next_page = 0
1211- if (trans_obj .server_cursor and len (result ) > 0 and len ( result )
1212- > data_result_rows_per_page ):
1210+ if (trans_obj .server_cursor and len (result ) > 0 and
1211+ len ( result ) > data_result_rows_per_page ):
12131212 result = result [0 :len (result ) - 1 ]
12141213 next_page = 1
12151214 rows_fetched_to = rows_fetched_to - 1
You can’t perform that action at this time.
0 commit comments