mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-09 21:42:05 +00:00
Mysql: Add SRID
column option (#1852)
This commit is contained in:
parent
05d7ffb1d5
commit
bf2b72fbe0
5 changed files with 21 additions and 0 deletions
|
@ -7754,6 +7754,10 @@ impl<'a> Parser<'a> {
|
|||
&& dialect_of!(self is MySqlDialect | SQLiteDialect | DuckDbDialect | GenericDialect)
|
||||
{
|
||||
self.parse_optional_column_option_as()
|
||||
} else if self.parse_keyword(Keyword::SRID)
|
||||
&& dialect_of!(self is MySqlDialect | GenericDialect)
|
||||
{
|
||||
Ok(Some(ColumnOption::Srid(Box::new(self.parse_expr()?))))
|
||||
} else if self.parse_keyword(Keyword::IDENTITY)
|
||||
&& dialect_of!(self is MsSqlDialect | GenericDialect)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue