mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-07-08 01:15:00 +00:00
647 Adding all ansii character string types, parsing them, and differentiating between each one (#648)
This commit is contained in:
parent
977cdb2270
commit
f7f14df4b1
4 changed files with 106 additions and 78 deletions
|
@ -74,7 +74,7 @@ fn parse_create_table_with_defaults() {
|
|||
},
|
||||
ColumnDef {
|
||||
name: "first_name".into(),
|
||||
data_type: DataType::Varchar(Some(45)),
|
||||
data_type: DataType::CharacterVarying(Some(45)),
|
||||
collation: None,
|
||||
options: vec![ColumnOptionDef {
|
||||
name: None,
|
||||
|
@ -83,7 +83,7 @@ fn parse_create_table_with_defaults() {
|
|||
},
|
||||
ColumnDef {
|
||||
name: "last_name".into(),
|
||||
data_type: DataType::Varchar(Some(45)),
|
||||
data_type: DataType::CharacterVarying(Some(45)),
|
||||
collation: Some(ObjectName(vec![Ident::with_quote('"', "es_ES")])),
|
||||
options: vec![ColumnOptionDef {
|
||||
name: None,
|
||||
|
@ -92,7 +92,7 @@ fn parse_create_table_with_defaults() {
|
|||
},
|
||||
ColumnDef {
|
||||
name: "email".into(),
|
||||
data_type: DataType::Varchar(Some(50)),
|
||||
data_type: DataType::CharacterVarying(Some(50)),
|
||||
collation: None,
|
||||
options: vec![],
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue