Skip to content

Commit

Permalink
Update dialect_vertica.py to support utf8 parameters
Browse files Browse the repository at this point in the history
cover cases where non-ascii word is parameter like ALTER TABLE some_table TO utf8_identifier_eg_Verkäufer;
  • Loading branch information
troshnev authored Sep 24, 2024
1 parent 4979286 commit 99af928
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/sqlfluff/dialects/dialect_vertica.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,12 @@
casefold=str.upper,
)
),
ParameterNameSegment=RegexParser(
#need to cover cases where non-ascii word is parameter like ALTER TABLE some_table TO utf8_identifier_eg_Verkäufer;

Check failure on line 522 in src/sqlfluff/dialects/dialect_vertica.py

View workflow job for this annotation

GitHub Actions / pre-commit

E501 line too long (124 > 88 characters)
r"[\p{L}_][\p{L}\p{N}$_]*",
sqlfluff.core.parser.CodeSegment,

Check failure on line 524 in src/sqlfluff/dialects/dialect_vertica.py

View workflow job for this annotation

GitHub Actions / pre-commit

Name "sqlfluff" is not defined [name-defined]

Check failure on line 524 in src/sqlfluff/dialects/dialect_vertica.py

View workflow job for this annotation

GitHub Actions / pre-commit

F821 undefined name 'sqlfluff'

Check failure on line 524 in src/sqlfluff/dialects/dialect_vertica.py

View workflow job for this annotation

GitHub Actions / pre-commit

F821 Undefined name `sqlfluff`
type="parameter"
),
)


Expand Down

0 comments on commit 99af928

Please sign in to comment.