Skip to content

Commit 3a8fd85

Browse files
committed
use op_open_blob2 instead of op_open_blob
1 parent ce181d4 commit 3a8fd85

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

firebirdsql/fbcore.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,12 @@ def fetch_generator(self):
9595
if x.sqltype == SQL_TYPE_BLOB:
9696
if not r[i]:
9797
continue
98-
connection._op_open_blob(r[i], self.trans.trans_handle)
99-
(h, oid, buf) = connection._op_response()
98+
connection._op_open_blob2(r[i], self.trans.trans_handle)
99+
if (connection.accept_type & ptype_MASK)== ptype_lazy_send:
100+
connection.lazy_response_count += 1
101+
h = -1
102+
else:
103+
(h, oid, buf) = connection._op_response()
100104
v = bs([])
101105
n = 1 # 0,1:mora data 2:no more data
102106
while n != 2:

0 commit comments

Comments
 (0)