Skip to content

Runtime error with putMany on Sqlite #847

@parsonsmatt

Description

@parsonsmatt

Bug Reports

Reporting a bug? If relevant, we recommend including:

  • Your OS name and version: Ubuntu 18.04

  • The versions of tools you're using:

     λ ~/ stack --version
    Version 1.9.3, Git revision 40cf7b37526b86d1676da82167ea8758a854953b (6211 commits) x86_64 
    hpack-0.31.1
    
  • The versions of dependencies you're using: resolver: lts-13.3

  • Finally, if possible, please reproduce the error in a small script; we have created a script for each backend with a minimal setup to use for this purpose. These are made with Stack's scripting support and can be run as ./file-name.hs. Even better, writing a failing test case is tremendously helpful.

Repro script available as a gist here

Output is:

$ ./repro.hs
Migrating: CREATE TABLE "person"("id" INTEGER PRIMARY KEY,"name" VARCHAR NOT NULL)
repro.hs: SQLite3 returned ErrorError while attempting to perform prepare "INSERT INTO \"person\"(\"name\") VALUES (?) ON CONFLICT () DO UPDATE SET \"name\"=EXCLUDED.\"name\"": near ")": syntax error

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