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

Incorrect SQL for inserting optional JsonbValue #2641

Open
lachezar opened this issue Nov 4, 2022 · 0 comments
Open

Incorrect SQL for inserting optional JsonbValue #2641

lachezar opened this issue Nov 4, 2022 · 0 comments

Comments

@lachezar
Copy link

lachezar commented Nov 4, 2022

ZIO-protoquill 4.6.0

If I have Option[JsonbValue[_]] the generated query fails

ERROR: column "attributes" is of type jsonb but expression is of type character varying
  Hint: You will need to rewrite or cast the expression.
  Position: 225

As a workaround I can do JsonbValue[Option[_]], but it is not optimal.

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