Err. This time patched in the right direction.
--- cursor.pyx.orig 2013-01-02 18:56:23.000000000 -0800 +++ cursor.pyx 2013-01-02 18:56:10.000000000 -0800 @@ -96,6 +96,7 @@ """ self._check_closed() self._do_autoping() + self._statements.clear() # This, on the other hand, is just plain stupid. if plain_query: if params: @@ -130,6 +131,7 @@ """ self._check_closed() self._do_autoping() + self._statements.clear() # No plain queries because they can't be parameterized anyway. stmt = self._new_statement() stmt.prepare(query)
Err. This time patched in the right direction.
--- cursor.pyx.orig 2013-01-02 18:56:23.000000000 -0800
self. _check_ closed( )
self. _do_autoping( ) s.clear( )
self. _check_ closed( )
self. _do_autoping( ) s.clear( ) statement( )
stmt. prepare( query)
+++ cursor.pyx 2013-01-02 18:56:10.000000000 -0800
@@ -96,6 +96,7 @@
"""
+ self._statement
# This, on the other hand, is just plain stupid.
if plain_query:
if params:
@@ -130,6 +131,7 @@
"""
+ self._statement
# No plain queries because they can't be parameterized anyway.
stmt = self._new_