Skip to content

Conversation

@angelamayxie
Copy link
Contributor

Copy link
Contributor

@fulghum fulghum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

node, err := n.WithChildren(triggerExecutor)
return node, transform.NewTree, err
} else {
// TODO: add HasAfterTrigger flag for DeleteFrom node once DELETE...RETURNING has been implemented
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do have DELETE ... RETURNING support in GMS, but it may only be tested currently through Doltgres' test suite.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's not yet fully implemented for GMS and Dolt (we don't currently support the grammar in vitess) so I'll leave it as a TODO for now

@angelamayxie angelamayxie merged commit 802dd50 into main Oct 1, 2025
9 checks passed
@angelamayxie angelamayxie deleted the angela/insert_returning branch October 1, 2025 20:28
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.

INSERT … RETURNING fails if an AFTER INSERT trigger is present

3 participants