Support tinyint (#320)

* Support tinyint

* Add tests
This commit is contained in:
sundyli 2021-07-17 20:16:38 +08:00 committed by GitHub
parent c5de1225e9
commit e5991f3ae5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 0 deletions

View file

@ -1938,6 +1938,7 @@ impl<'a> Parser<'a> {
let _ = self.parse_keyword(Keyword::PRECISION);
Ok(DataType::Double)
}
Keyword::TINYINT => Ok(DataType::TinyInt),
Keyword::SMALLINT => Ok(DataType::SmallInt),
Keyword::INT | Keyword::INTEGER => Ok(DataType::Int),
Keyword::BIGINT => Ok(DataType::BigInt),