mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-22 23:14:07 +00:00
Turn type Ident into struct Ident
The Ident type was previously an alias for a String. Turn it into a full fledged struct, so that the parser can preserve the distinction between identifier value and quote style already made by the tokenizer's Word structure.
This commit is contained in:
parent
9b2287f14c
commit
b1cbc55128
6 changed files with 160 additions and 88 deletions
|
@ -79,7 +79,7 @@ fn parse_create_table_with_defaults() {
|
|||
ColumnDef {
|
||||
name: "last_name".into(),
|
||||
data_type: DataType::Varchar(Some(45)),
|
||||
collation: Some(ObjectName(vec!["\"es_ES\"".into()])),
|
||||
collation: Some(ObjectName(vec![Ident::with_quote('"', "es_ES")])),
|
||||
options: vec![ColumnOptionDef {
|
||||
name: None,
|
||||
option: ColumnOption::NotNull,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue