Skip to content

Commit 020f5fa

Browse files
committed
Fix Python API test case.
1 parent 8a42d7e commit 020f5fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/pgadmin/tools/sqleditor/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@ def poll(trans_id):
12071207

12081208
# Check the next recordset/page is available or not for the server cursor
12091209
next_page = 0
1210-
if (trans_obj.server_cursor and len(result) > 0 and
1210+
if (trans_obj.server_cursor and result and len(result) > 0 and
12111211
len(result) > data_result_rows_per_page):
12121212
result = result[0:len(result) - 1]
12131213
next_page = 1

0 commit comments

Comments
 (0)