@@ -72,7 +72,7 @@ def __init__(self, trans):
7272
7373 def _allocate_stmt (self ):
7474 self .trans .connection ._op_allocate_statement ()
75- if self .trans .connection .accept_type == ptype_lazy_send :
75+ if ( self .trans .connection .accept_type & ptype_MASK ) == ptype_lazy_send :
7676 self .trans .connection .lazy_response_count += 1
7777 self .handle = - 1
7878 else :
@@ -107,7 +107,7 @@ def fetch_generator(self):
107107 v += buf [2 :ln + 2 ]
108108 buf = buf [ln + 2 :]
109109 connection ._op_close_blob (h )
110- if connection .accept_type == ptype_lazy_send :
110+ if ( connection .accept_type & ptype_MASK ) == ptype_lazy_send :
111111 connection .lazy_response_count += 1
112112 else :
113113 (h , oid , buf ) = connection ._op_response ()
@@ -151,7 +151,7 @@ def close(self):
151151 DEBUG_OUTPUT ("Statement::close()" , self .handle )
152152 if self .stmt_type == isc_info_sql_stmt_select and self ._is_open :
153153 self .trans .connection ._op_free_statement (self .handle , DSQL_close )
154- if self .trans .connection .accept_type == ptype_lazy_send :
154+ if ( self .trans .connection .accept_type & ptype_MASK ) == ptype_lazy_send :
155155 self .trans .connection .lazy_response_count += 1
156156 else :
157157 (h , oid , buf ) = self .trans .connection ._op_response ()
@@ -161,7 +161,7 @@ def drop(self):
161161 DEBUG_OUTPUT ("Statement::drop()" , self .handle )
162162 if self .handle != - 1 and self ._is_open :
163163 self .trans .connection ._op_free_statement (self .handle , DSQL_drop )
164- if self .trans .connection .accept_type == ptype_lazy_send :
164+ if ( self .trans .connection .accept_type & ptype_MASK ) == ptype_lazy_send :
165165 self .trans .connection .lazy_response_count += 1
166166 else :
167167 (h , oid , buf ) = self .trans .connection ._op_response ()
0 commit comments