Treat COLLATE like any other column option (#1731)

This commit is contained in:
Michael Victor Zink 2025-02-19 21:26:20 -08:00 committed by GitHub
parent b482562618
commit 97f0be6991
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 60 additions and 151 deletions

View file

@ -1496,7 +1496,6 @@ fn parse_create_table_with_valid_options() {
span: Span::empty(),
},
data_type: Int(None,),
collation: None,
options: vec![],
},
ColumnDef {
@ -1506,7 +1505,7 @@ fn parse_create_table_with_valid_options() {
span: Span::empty(),
},
data_type: Int(None,),
collation: None,
options: vec![],
},
ColumnDef {
@ -1516,7 +1515,7 @@ fn parse_create_table_with_valid_options() {
span: Span::empty(),
},
data_type: Int(None,),
collation: None,
options: vec![],
},
],
@ -1671,7 +1670,7 @@ fn parse_create_table_with_identity_column() {
span: Span::empty(),
},
data_type: Int(None,),
collation: None,
options: column_options,
},],
constraints: vec![],
@ -1815,7 +1814,7 @@ fn parse_mssql_varbinary_max_length() {
vec![ColumnDef {
name: Ident::new("var_binary_col"),
data_type: Varbinary(Some(BinaryLength::Max)),
collation: None,
options: vec![]
},],
);
@ -1840,7 +1839,7 @@ fn parse_mssql_varbinary_max_length() {
vec![ColumnDef {
name: Ident::new("var_binary_col"),
data_type: Varbinary(Some(BinaryLength::IntegerLength { length: 50 })),
collation: None,
options: vec![]
},],
);