Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* collate in table column * Create collation * delimited implies optional I guess * Add note * remove more optionals * better tests * Smush into a single test using UNIQUE instead of PK * More tests Co-authored-by: Barry Hart <barrywhart@yahoo.com> Co-authored-by: Barry Pollard <barry_pollard@hotmail.com>
- Loading branch information
1 parent
ec9af41
commit e365dcc
Showing
6 changed files
with
227 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
test/fixtures/dialects/postgres/postgres_create_collation.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CREATE COLLATION numeric (provider = icu, locale = 'en@colNumeric=yes'); | ||
|
||
CREATE COLLATION french (locale = 'fr_FR.utf8'); | ||
|
||
CREATE COLLATION german_phonebook (provider = icu, locale = 'de-u-co-phonebk'); | ||
|
||
CREATE COLLATION german FROM "de_DE"; |
69 changes: 69 additions & 0 deletions
69
test/fixtures/dialects/postgres/postgres_create_collation.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# YML test files are auto-generated from SQL files and should not be edited by | ||
# hand. To help enforce this, the "hash" field in the file must match a hash | ||
# computed by SQLFluff when running the tests. Please run | ||
# `python test/generate_parse_fixture_yml.py` to generate them after adding or | ||
# altering SQL files. | ||
_hash: 309835f67eb282ebe597717e51871c763cbc54e4501ca3bda650a877633f1023 | ||
file: | ||
- statement: | ||
create_collation_statement: | ||
- keyword: CREATE | ||
- keyword: COLLATION | ||
- object_reference: | ||
identifier: numeric | ||
- bracketed: | ||
- start_bracket: ( | ||
- keyword: provider | ||
- comparison_operator: | ||
raw_comparison_operator: '=' | ||
- keyword: icu | ||
- comma: ',' | ||
- keyword: locale | ||
- comparison_operator: | ||
raw_comparison_operator: '=' | ||
- literal: "'en@colNumeric=yes'" | ||
- end_bracket: ) | ||
- statement_terminator: ; | ||
- statement: | ||
create_collation_statement: | ||
- keyword: CREATE | ||
- keyword: COLLATION | ||
- object_reference: | ||
identifier: french | ||
- bracketed: | ||
start_bracket: ( | ||
keyword: locale | ||
comparison_operator: | ||
raw_comparison_operator: '=' | ||
literal: "'fr_FR.utf8'" | ||
end_bracket: ) | ||
- statement_terminator: ; | ||
- statement: | ||
create_collation_statement: | ||
- keyword: CREATE | ||
- keyword: COLLATION | ||
- object_reference: | ||
identifier: german_phonebook | ||
- bracketed: | ||
- start_bracket: ( | ||
- keyword: provider | ||
- comparison_operator: | ||
raw_comparison_operator: '=' | ||
- keyword: icu | ||
- comma: ',' | ||
- keyword: locale | ||
- comparison_operator: | ||
raw_comparison_operator: '=' | ||
- literal: "'de-u-co-phonebk'" | ||
- end_bracket: ) | ||
- statement_terminator: ; | ||
- statement: | ||
create_collation_statement: | ||
- keyword: CREATE | ||
- keyword: COLLATION | ||
- object_reference: | ||
identifier: german | ||
- keyword: FROM | ||
- object_reference: | ||
identifier: '"de_DE"' | ||
- statement_terminator: ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters