yesodweb / yesodweb/persistent

persistent-postgresql 2.13.0.1 test failures with persistent-test 2.13.0.3

Open
#1,278 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Haskell
Stars
486
Forks
306
PR merge metrics
No merged PRs in 30d

Description

Failures:

  src/PersistentTest.hs:80:9:
  1) persistent.SafeToRemove.DudeWeirdColumns can insert and get
       uncaught exception: SqlError
       SqlError {sqlState = "23502", sqlExecStatus = FatalError, sqlErrorMsg = "null value in column \"bar\" of relation \"DudeWeirdColumns\" violates not-null constraint", sqlErrorDetail = "Failing row contains (2, hello, null, null).", sqlErrorHint = ""}

  To rerun use: --match "/persistent/SafeToRemove/DudeWeirdColumns/can insert and get/"

  src/PersistentTest.hs:86:9:
  2) persistent.SafeToRemove.DudeWeirdColumns can putMany
       uncaught exception: FormatError
       FormatError {fmtMessage = "6 single '?' characters, but 2 parameters", fmtQuery = "INSERT INTO \"DudeWeirdColumns\"(\"name\", \"foo\", \"bar\") VALUES (?, ?, ?), (?, ?, ?) ON CONFLICT (\"name\") DO UPDATE SET \"name\"=EXCLUDED.\"name\", \"foo\"=EXCLUDED.\"foo\", \"bar\"=EXCLUDED.\"bar\"", fmtParams = ["goodbyue","hello"]}

  To rerun use: --match "/persistent/SafeToRemove/DudeWeirdColumns/can putMany/"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the failing tests in src/PersistentTest.hs at lines 80 and 86. Rerun the two cases using the provided --match patterns, then inspect the persistent-postgresql test setup and generated SQL. Done means both DudeWeirdColumns tests pass without the reported SqlError or FormatError.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell, postgresql
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.