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

PG JSON unions are unsupported #113

Closed
steelbrain opened this issue Jun 21, 2020 · 2 comments
Closed

PG JSON unions are unsupported #113

steelbrain opened this issue Jun 21, 2020 · 2 comments

Comments

@steelbrain
Copy link

Update "Table" set params = "params" || :params where "id" = :id;

breaks PGTyped. This is valid PG syntax, for example, try running this in REPL

select '{"a" :"a", "b": "b"}'::jsonb || '{"a": "b"}'::jsonb as text
@adelsz
Copy link
Owner

adelsz commented Jun 23, 2020

Hm, running UPDATE notifications SET payload = '{"a": "b"}'::jsonb || $params WHERE id = $id; works for me, with params being inferred to be JSON by pgTyped.
Can you attach the actual query you are trying to execute?

@steelbrain
Copy link
Author

Unable to repro in latest release

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

2 participants