Skip to content

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

@vjik

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.

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