Mysql: Add SRID column option (#1852)

This commit is contained in:
Mohamed Abdeen 2025-05-23 06:09:05 +01:00 committed by GitHub
parent 05d7ffb1d5
commit bf2b72fbe0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 21 additions and 0 deletions

View file

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