mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-12-23 11:12:51 +00:00
Support DOUBLE data types with precision for Mysql (#1611)
This commit is contained in:
parent
eae5629fb8
commit
c973df35d6
4 changed files with 21 additions and 9 deletions
|
|
@ -8115,7 +8115,9 @@ impl<'a> Parser<'a> {
|
|||
if self.parse_keyword(Keyword::PRECISION) {
|
||||
Ok(DataType::DoublePrecision)
|
||||
} else {
|
||||
Ok(DataType::Double)
|
||||
Ok(DataType::Double(
|
||||
self.parse_exact_number_optional_precision_scale()?,
|
||||
))
|
||||
}
|
||||
}
|
||||
Keyword::TINYINT => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue