mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-11 06:22:04 +00:00
Merge pull request #92 from benesch/decimal-dec
Parse DECIMAL and DEC aliases for NUMERIC type
This commit is contained in:
commit
1ddef7aa71
2 changed files with 13 additions and 1 deletions
|
@ -1118,7 +1118,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