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

Add coalescing assignment operators #7101

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from
Draft

Add coalescing assignment operators #7101

wants to merge 9 commits into from

Conversation

dnwpark
Copy link
Contributor

@dnwpark dnwpark commented Mar 22, 2024

Given a string property:

Insert with :=? operator does the following:

default compexpr assigned
'foo' bar bar
'foo' {} foo
{} bar bar
{} {} {}
no default bar bar
no default {} {}

Update with :=? operator does the following:

existing compexpr assigned
'foo' bar bar
'foo' {} foo
{} bar bar
{} {} {}

Using either operator with insert produces the following error:
coalescing assignments are prohibited outside of insert and update

Todo:

  • fix null set requiring type cast
  • type checking flags adding ctx to SelectQuery

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 this pull request may close these issues.

None yet

1 participant