mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-19 13:40:15 +00:00
Add support of NVARCHAR data type (#462)
* Add support of nvarchar data type * Change the format type with capitals Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org> * Add Test Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
This commit is contained in:
parent
d035784bdf
commit
278345d21a
4 changed files with 17 additions and 0 deletions
|
@ -2569,6 +2569,7 @@ impl<'a> Parser<'a> {
|
|||
}
|
||||
}
|
||||
Keyword::VARCHAR => Ok(DataType::Varchar(self.parse_optional_precision()?)),
|
||||
Keyword::NVARCHAR => Ok(DataType::Nvarchar(self.parse_optional_precision()?)),
|
||||
Keyword::CHAR | Keyword::CHARACTER => {
|
||||
if self.parse_keyword(Keyword::VARYING) {
|
||||
Ok(DataType::Varchar(self.parse_optional_precision()?))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue