Skip to content

Defaults are not handled in multirow inserts #71

Open

Description

@stachlewski

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)

Activity

  1. nhumrich commented on Feb 8, 2018

    @nhumrich
    Contributor

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

  2. stachlewski commented on Feb 12, 2018

    @stachlewski
    ContributorAuthor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions