asyncpgsa icon indicating copy to clipboard operation
asyncpgsa copied to clipboard

Defaults are not handled in multirow inserts

Open stachlewski opened this issue 7 years ago • 2 comments

execute_defaults assumes the query.parameters can't be a list, which is the case in a multirow insert like: q = table.insert().values([ {'val': 12}, {'val': 13}, ]) conn.execute(q)

stachlewski avatar Feb 06 '18 23:02 stachlewski

could you throw together a PR and test case that fixes this?

nhumrich avatar Feb 08 '18 00:02 nhumrich

I have a quick fix here: https://github.com/okcode-eu/asyncpgsa I will try to find some time to add a test.

stachlewski avatar Feb 12 '18 13:02 stachlewski