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

Support UPDATE SET DEFAULT #132

Closed
apstndb opened this issue Oct 1, 2024 · 0 comments · Fixed by #157
Closed

Support UPDATE SET DEFAULT #132

apstndb opened this issue Oct 1, 2024 · 0 comments · Fixed by #157

Comments

@apstndb
Copy link
Contributor

apstndb commented Oct 1, 2024

UPDATE SET DEFAULT is not yet supported.

https://cloud.google.com/spanner/docs/reference/standard-sql/dml-syntax#update-statement

[statement_hint_expr] UPDATE table_name [table_hint_expr] [[AS] alias]
SET update_item [, ...]
WHERE condition [return_clause];

update_item: column_name = { expression | DEFAULT }

statement_hint_expr: '@{' statement_hint_key = statement_hint_value '}'

table_hint_expr: '@{' table_hint_key = table_hint_value '}'

return_clause:
    THEN RETURN [ WITH ACTION [ AS alias ]  ] { select_all | expression [  [ AS ] alias ] } [, ...]

select_all:
    [ table_name. ]*
    [ EXCEPT ( column_name [, ...] ) ]
    [ REPLACE ( expression [ AS ] column_name [, ...] ) ]

Related

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

Successfully merging a pull request may close this issue.

1 participant