Skip to content

SQLite temporary table name collision with forkIO for "returning" emulation #371

Open
@moll

Description

@moll

Hey,

I'm not even sure how well running Beam on SQLite from different lightweight threads (forkIO) should work, but given the temporary table creation mechanism for getting the inserted row (https://github.com/tathougies/beam/blob/d87120b58373df53f075d92ce12037a98ca709ab/beam-sqlite/Database/Beam/Sqlite/Connection.hs#L379) reuses the same id every round, it definitely won't work and ends up throwing a number of table inserted_values_14173 already exists errors.

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