| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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.
| try: | ||
| idx, datatype = self._column_map[key] | ||
| except KeyError: | ||
| return self._row[key] |
There was a problem hiding this comment.
Should we be setting raw to self._row[key] to ensure the processor runs on it still?
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
If no explicit colum info is present, the postgres Record class causes a
KeyError. Besides the given example in #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.
I did a simple test run using sqlite and postgres.