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

Automatically ref names of CTETables in DELETE and UPDATE statements #179

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

huandu
Copy link
Owner

@huandu huandu commented Nov 2, 2024

Per #176, The names of CTE tables created by CTETable can be automatically added to FROM clause in DELETE and UPDATE statement. The UPDATE statement in MySQL is an exception as MySQL uses different syntax.

See ExampleCTEBuilder_update and ExampleCTEBuilder_delete in ./cte_test.go for more details.

@coveralls
Copy link

Coverage Status

coverage: 96.807% (-0.06%) from 96.87%
when pulling 96c9b25 on feature/cte-table-for-update-delete
into 134c901 on master.

@huandu huandu merged commit bb320aa into master Nov 6, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants