]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Use no row factory in TypeInfo.fetch*()
authorDenis Laxalde <denis.laxalde@dalibo.com>
Thu, 11 Feb 2021 15:15:23 +0000 (16:15 +0100)
committerDenis Laxalde <denis.laxalde@dalibo.com>
Thu, 11 Feb 2021 15:19:12 +0000 (16:19 +0100)
commitafd8bffbbd083174db546607b31c3d8879280b02
tree2806bb9a0a1a6eb3d6c3b8fe950912e49f51c5b0
parent4361d465509e8e5d156731a11e644bebb58d1c92
Use no row factory in TypeInfo.fetch*()

TypeInfo.fetch() and TypeInfo.fetch_async() delegate results processing
to TypeInfo._fetch() which only handle results as tuples. Therefore, we
build the cursor with no row factory to guarantee this. Still we need to
add a type hint on 'recs' variable because this cannot be inferred (this
fixes the mypy error introduced in previous commits).
psycopg3/psycopg3/_typeinfo.py