Add support for JSONB datatype (#1089)

This commit is contained in:
Alexander Beedie 2024-01-15 14:46:09 +04:00 committed by GitHub
parent 7cb1654d81
commit 5d66dc5dc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 1 deletions

View file

@ -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),