yesodweb / yesodweb/persistent

Storing lists of strings in postgresql database leads to every string having "s" prepended to it

Open
#801 7 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

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.