You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why it is closed? It's a bug, even if it's possible to work around it by explicit passing columns. If this library supports sqlalchemy core queries than it should support asterisk column lookup too.
If no explicit colum info is present, the postgres Record class causes a
KeyError. Besides the given example in encode#190 this also
happens if you construct the queries from text-clauses.
Handling this the same way as if there is no entry in `self._column_map`
fixes the error.
A simple testcase is added as well.
slqlalchemy supports
"*"
as a returning value, however when I'm using it with postgres backendand then try to get row data
KeyError
shows up in this line https://github.com/encode/databases/blob/master/databases/backends/postgres.py#L105That's because
self._column_map
has value{'*': (0, NullType())}
So there should be probably some extra check for the wildcard column.
The text was updated successfully, but these errors were encountered: