We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
SQLFluff should pass lint check when adding unique constraint to multiple columns in MySQL. Reference: https://stackoverflow.com/questions/635937/how-do-i-specify-unique-constraint-for-multiple-columns-in-mysql#answer-635943
SQL reported PRS error Found unparsable section
Found unparsable section
Prepare a file add_index.sql:
ALTER TABLE `foo`.`bar` ADD UNIQUE `index_name`(`col_1`, `col_2`, `col_3`);
Run sqlfluff lint --dialect=mysql add_index.sql
Output will be
L: 1 | P: 35 | PRS | Line 1, Position 35: Found unparsable section: ' | `index_name`(`col_1`, `col_2`, `col_3`)...' All Finished 📜 🎉!
mysql
Python 3.9.7 sqlfluff, version 0.7.1
default
The text was updated successfully, but these errors were encountered:
This is a great first issue for anyone looking to start contributing to SQLFluff: https://github.com/sqlfluff/sqlfluff/wiki/Contributing-Dialect-Changes
Sorry, something went wrong.
The same holds true for the create table statement.
create table
Raised #2443 for this.
@kayman-mk could you raise a separate issue for the create table issue with example SQL?
Done with #2515
Successfully merging a pull request may close this issue.
Expected Behaviour
SQLFluff should pass lint check when adding unique constraint to multiple columns in MySQL.
Reference: https://stackoverflow.com/questions/635937/how-do-i-specify-unique-constraint-for-multiple-columns-in-mysql#answer-635943
Observed Behaviour
SQL reported PRS error
Found unparsable section
Steps to Reproduce
Prepare a file add_index.sql:
Run sqlfluff lint --dialect=mysql add_index.sql
Output will be
Dialect
mysql
Version
Python 3.9.7
sqlfluff, version 0.7.1
Configuration
default
The text was updated successfully, but these errors were encountered: