feat: add precision for TIME, DATETIME, and TIMESTAMP data types (#701)

Now all those statements are both parsed and displayed with precision
and timezone info. Tests were added to the ones presented in the ANSI
standard.
This commit is contained in:
Augusto Fotino 2022-11-11 18:06:57 -03:00 committed by GitHub
parent cdf4447065
commit 65c5a37bce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 108 additions and 40 deletions

View file

@ -1026,7 +1026,7 @@ fn parse_table_colum_option_on_update() {
assert_eq!(
vec![ColumnDef {
name: Ident::with_quote('`', "modification_time"),
data_type: DataType::Datetime,
data_type: DataType::Datetime(None),
collation: None,
options: vec![ColumnOptionDef {
name: None,