mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-13 07:22:02 +00:00
Parse DECIMAL and DEC aliases for NUMERIC type
This commit is contained in:
parent
2308c1c6f7
commit
38fc920d7c
2 changed files with 13 additions and 1 deletions
|
@ -1122,7 +1122,7 @@ impl Parser {
|
|||
}
|
||||
}
|
||||
"BYTEA" => Ok(SQLType::Bytea),
|
||||
"NUMERIC" => {
|
||||
"NUMERIC" | "DECIMAL" | "DEC" => {
|
||||
let (precision, scale) = self.parse_optional_precision_scale()?;
|
||||
Ok(SQLType::Decimal(precision, scale))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue