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

VALUES clause support #233

Open
v-byte-cpu opened this issue Apr 28, 2023 · 1 comment
Open

VALUES clause support #233

v-byte-cpu opened this issue Apr 28, 2023 · 1 comment

Comments

@v-byte-cpu
Copy link

Is your feature request related to a problem? Please describe.

Hi there! It looks like Jet doesn't support VALUES clause. My personal use case is batch update statements, for instance

UPDATE public.some_table
SET name = (d.v)::text
FROM (
         VALUES (1, 'name1'), (2, 'name2')
     ) AS d(id, v)
WHERE some_table.id = (d.id)::bigint;

or

WITH d(id, v) AS (VALUES (1, 'name1'), (2, 'name2'))
UPDATE public.some_table
SET name = (d.v)::text
FROM d where some_table.id = (d.id)::bigint;

Describe the solution you'd like

Public API support for VALUES clause.

@go-jet
Copy link
Owner

go-jet commented Apr 29, 2023

Hi @v-byte-cpu. VALUES is not supported currently. You can use this workaround for now.

@go-jet go-jet added this to the Version 2.11.0 milestone Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants