yesodweb / yesodweb/persistent
persistent-postgresql 2.13.0.1 test failures with persistent-test 2.13.0.3
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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