Why psycopg returns string for integer type during SELECT #1439
Unanswered
soulofmitsui
asked this question in
Q&A
Replies: 1 comment 1 reply
-
What database is this? I guess not PostgreSQL:
More info about this type can be obtained using:
what do you get? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I noticed in many cases psycopg returns string for integer columns doing SELECT. For example, the count(*) query below returned string (i.e. '1') instead of int. However, the "select oid" query can return int. What's the rule deciding return type? psycopg version is 2.8.6 and python version is 3.8.10.
Beta Was this translation helpful? Give feedback.
All reactions