Permalink
Browse files

recreate stmt_handle (FIX:'SQL error code = -519')

  • Loading branch information...
1 parent 43b7c8d commit e385a8c3a3e1491a65b5e9cc4380289d69630bce @nakagami committed Apr 6, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 firebirdsql/fbcore.py
View
@@ -621,6 +621,12 @@ def execute(self, query, params = []):
(h, oid, buf) = self.connection._op_response()
r[i] = v
self.cur_row = 0
+ # recreate stmt_handle
+ self.connection._op_free_statement(self.stmt_handle, 2) # DSQL_drop
+ (h, oid, buf) = self.connection._op_response()
+ self.connection._op_allocate_statement()
+ (h, oid, buf) = self.connection._op_response()
+ self.stmt_handle = h
else:
self.connection._op_execute(self.stmt_handle, params)
try:

0 comments on commit e385a8c

Please sign in to comment.