improve errors when misapplying :one
, :many
, etc to queries that don't return anything
#22
Labels
:one
, :many
, etc to queries that don't return anything
#22
We can probably give a pugsql-specific error when this happens. Currently you get something like:
sqlalchemy.exc.ResourceClosedError: This result object does not return rows. It has been closed automatically.
(Might be driver-specific, not sure)
The text was updated successfully, but these errors were encountered: