Skip to content

Error on upsert() to table with several unique/primary keys #394

Description

@vjik

There is table with one primary key and yet another unique key. On upsert() usage throws error:

SQLSTATE[HY000]: General error: 1 ON CONFLICT clause does not match any PRIMARY KEY or UNIQUE constraint

Seems for SQLite requires created separate ON CONFLICT clause for each of keys.

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions