Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CITEXT in array not working #739

Open
perotom opened this issue Sep 24, 2024 · 0 comments
Open

CITEXT in array not working #739

perotom opened this issue Sep 24, 2024 · 0 comments

Comments

@perotom
Copy link

perotom commented Sep 24, 2024

When using a column of type citext[], it will not be typed correctly. The output will be a List[PGobject].

def tags = column[Option[List[String]]]("tags")

Workaround right now is to manually convert the PGobject to String like tags.asInstanceOf[List[PGobject]].map(_.getValue). I tried it with a custom mapper

implicit val simpleCiStrListTypeMapper: JdbcType[List[String]] = new SimpleArrayJdbcType[String]("citext").to(_.toList)

but that didn't help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant