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:
Alex Vasilev 2021-08-29 14:13:10 +03:00 committed by GitHub
parent 9a5716d94b
commit 77d90d3b85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 81 additions and 36 deletions

View file

@ -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![],
},