Skip to content

Conversation

mvzink
Copy link
Contributor

@mvzink mvzink commented Aug 7, 2025

MySQL uses a statement body similar to MSSQL (but without the AS keyword) instead of EXECUTE body style used in Postgres and standard SQL. But unlike MSSQL, MySQL puts the trigger period before the target table. We add some flags to indicate these differences and allow parsing and round tripping MySQL triggers. The main benefit is that we can now handle MySQL triggers which include BEGIN; ... END; compound statements.

mvzink added 3 commits August 7, 2025 09:45
MySQL uses a statement body similar to MSSQL (but without the `AS`
keyword) instead of `EXECUTE` body style used in Postgres and standard
SQL. But unlike MSSQL, MySQL puts the trigger period before the target
table. We add some flags to indicate these differences and allow parsing
and round tripping MySQL triggers. The main benefit is that we can now
handle MySQL triggers which include `BEGIN; ... END;` compound
statements.
Strangely, I don't see this lint failure locally.
@mvzink
Copy link
Contributor Author

mvzink commented Aug 7, 2025

Had to fix some new lint errors in preexisting code because 1.89 came out; happy to pull that into a separate PR if desired.

Copy link
Contributor

@iffyio iffyio left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @mvzink!
cc @alamb

@iffyio iffyio merged commit 183bc7c into apache:main Aug 8, 2025
10 checks passed
@mvzink mvzink deleted the push-lmlxxnuuvnlr branch August 13, 2025 15:53
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.

2 participants