yesodweb / yesodweb/persistent
Storing lists of strings in postgresql database leads to every string having "s" prepended to it
Open
Nobody has claimed this yet.
- Dominant language
- Haskell
- Stars
- 486
- Forks
- 306
- PR merge metrics
- No merged PRs in 30d
Description
Pretty much title, if I insert ["foo", "bar", "baz"] into the database via some field that has type [String], and then I look at the database directly, I have ["sfoo", "sbar", "sbaz"], which I would prefer not to have.
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
No files, tests, or entry points are named. Reproduce the issue with a PostgreSQL field of type [String], then trace the PostgreSQL serialization path; done means stored list values no longer gain an "s" prefix and a regression test covers the case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell, postgresql
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100