mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-23 07:24:10 +00:00
Support minimum display width for integer data types (#337)
* Support minimum display width for integers * make fmt happy, updated docstrings
This commit is contained in:
parent
9a5716d94b
commit
77d90d3b85
6 changed files with 81 additions and 36 deletions
|
@ -68,7 +68,7 @@ fn parse_create_table_auto_increment() {
|
|||
assert_eq!(
|
||||
vec![ColumnDef {
|
||||
name: "bar".into(),
|
||||
data_type: DataType::Int,
|
||||
data_type: DataType::Int(None),
|
||||
collation: None,
|
||||
options: vec![
|
||||
ColumnOptionDef {
|
||||
|
@ -100,13 +100,13 @@ fn parse_create_sqlite_quote() {
|
|||
vec![
|
||||
ColumnDef {
|
||||
name: Ident::with_quote('"', "KEY"),
|
||||
data_type: DataType::Int,
|
||||
data_type: DataType::Int(None),
|
||||
collation: None,
|
||||
options: vec![],
|
||||
},
|
||||
ColumnDef {
|
||||
name: Ident::with_quote('[', "INDEX"),
|
||||
data_type: DataType::Int,
|
||||
data_type: DataType::Int(None),
|
||||
collation: None,
|
||||
options: vec![],
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue