-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
problem "WITH" on INSERT #353
Comments
Thanks for reporting this ! |
Hello folks, do you have any update for me? |
Hi ! Could you test the dev-master version of the library in case it already improved this ? Hi @iifawzi |
Hi, I can confirm that it's not covered. Also such form of statements are not covered too.
Examples: INSERT INTO table_name WITH cte (col1) AS ( SELECT 1 UNION ALL SELECT 2 ) SELECT col1 FROM cte
INSERT INTO table_name WITH cte (col1) AS ( SELECT 1 ) SELECT col1 FROM cte ON DUPLICATE KEY UPDATE col_name = 3
CREATE table table_name AS WITH cte (col1) AS ( SELECT 1 UNION ALL SELECT 2 ) SELECT col1 FROM cte I couldn't think of a test case for the We need to make other statements aware of the keyword. I will find some time to work on it. |
Closed by #363 |
it legitimate construction but linter does not allow it
INSERT ... WITH ... SELECT ...
https://dev.mysql.com/doc/refman/8.0/en/with.htmlThe text was updated successfully, but these errors were encountered: