Skip to content
New issue

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

cursor.description throws ReferenceError after executemany INSERT [PYFB64] #81

Closed
firebird-automations opened this issue Mar 10, 2016 · 2 comments

Comments

@firebird-automations
Copy link

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

@firebird-automations
Copy link
Author

Modified by: @pcisar

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 1.6 [ 10752 ]

@firebird-automations
Copy link
Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants