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
Consider the following:
import psycopg2ct as psycopg2 from psycopg2ct import compat compat.register() from psycopg2.extras import RealDictCursor conn = psycopg2.connect("dbname=haizaar user=haizaar password=password host=localhost port=5432", cursor_factory=RealDictCursor) cursor = conn.cursor() cursor.execute("SELECT 1 AS a") print cursor.fetchall() print type(cursor)
It prints:
[(1,)] <class 'psycopg2ct._impl.cursor.Cursor'>
However I would expect a dictionary.
The text was updated successfully, but these errors were encountered:
Skipping cursor factory check on psycopg2ct
a17d594
Its a (known) bug: mvantellingen/psycopg2-ctypes#31
3272dbe
No branches or pull requests
Consider the following:
It prints:
However I would expect a dictionary.
The text was updated successfully, but these errors were encountered: