mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-15 08:19:08 +00:00
Add support for JSONB
datatype (#1089)
This commit is contained in:
parent
7cb1654d81
commit
5d66dc5dc9
4 changed files with 17 additions and 1 deletions
|
@ -5645,6 +5645,7 @@ impl<'a> Parser<'a> {
|
|||
// parse_interval for a taste.
|
||||
Keyword::INTERVAL => Ok(DataType::Interval),
|
||||
Keyword::JSON => Ok(DataType::JSON),
|
||||
Keyword::JSONB => Ok(DataType::JSONB),
|
||||
Keyword::REGCLASS => Ok(DataType::Regclass),
|
||||
Keyword::STRING => Ok(DataType::String(self.parse_optional_precision()?)),
|
||||
Keyword::TEXT => Ok(DataType::Text),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue