We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Submitted by: Jan Michalski (hator)
ReferenceError is thrown when accessing cursor description after calling executemany with an INSERT.
======== Example code below: ========= import fdb
connection = fdb.create_database("CREATE DATABASE '/tmp/test.db' user 'SYSDBA' password 'masterkey'")
cursor = connection.cursor()
cursor.execute("CREATE TABLE TEST (ID INTEGER PRIMARY KEY)") connection.commit() cursor.executemany("INSERT INTO TEST VALUES(?)", [(1,), (2,)])
print cursor.description
====================== Traceback (most recent call last): File "http://test.py", line 11, in <module> print cursor.description File "/home/hator/PythonEnvs/konkret-raporty/lib/python2.7/site-packages/fdb/fbcore.py", line 3296, in __get_description return self._ps.description ReferenceError: weakly-referenced object no longer exists
Commits: 55bcbcd FirebirdSQL/fbt-repository@42a04ff
The text was updated successfully, but these errors were encountered:
status: Open [ 1 ] => Resolved [ 5 ]
resolution: Fixed [ 1 ]
Fix Version: 1.6 [ 10752 ]
Sorry, something went wrong.
status: Resolved [ 5 ] => Closed [ 6 ]
pcisar
No branches or pull requests
Submitted by: Jan Michalski (hator)
ReferenceError is thrown when accessing cursor description after calling executemany with an INSERT.
======== Example code below: =========
import fdb
connection = fdb.create_database("CREATE DATABASE '/tmp/test.db' user 'SYSDBA' password 'masterkey'")
cursor = connection.cursor()
cursor.execute("CREATE TABLE TEST (ID INTEGER PRIMARY KEY)")
connection.commit()
cursor.executemany("INSERT INTO TEST VALUES(?)", [(1,), (2,)])
print cursor.description
======================
Traceback (most recent call last):
File "http://test.py", line 11, in <module>
print cursor.description
File "/home/hator/PythonEnvs/konkret-raporty/lib/python2.7/site-packages/fdb/fbcore.py", line 3296, in __get_description
return self._ps.description
ReferenceError: weakly-referenced object no longer exists
Commits: 55bcbcd FirebirdSQL/fbt-repository@42a04ff
The text was updated successfully, but these errors were encountered: