File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1764,7 +1764,7 @@ pub enum ColumnOption {
1764
1764
/// CREATE TABLE geom (g GEOMETRY NOT NULL SRID 4326);
1765
1765
/// ```
1766
1766
/// [MySQL]: https://dev.mysql.com/doc/refman/8.4/en/creating-spatial-indexes.html
1767
- Srid ( Expr ) ,
1767
+ Srid ( Box < Expr > ) ,
1768
1768
}
1769
1769
1770
1770
impl fmt:: Display for ColumnOption {
Original file line number Diff line number Diff line change @@ -7757,7 +7757,7 @@ impl<'a> Parser<'a> {
7757
7757
} else if self.parse_keyword(Keyword::SRID)
7758
7758
&& dialect_of!(self is MySqlDialect | GenericDialect)
7759
7759
{
7760
- Ok(Some(ColumnOption::Srid(self.parse_expr()?)))
7760
+ Ok(Some(ColumnOption::Srid(Box::new( self.parse_expr()?) )))
7761
7761
} else if self.parse_keyword(Keyword::IDENTITY)
7762
7762
&& dialect_of!(self is MsSqlDialect | GenericDialect)
7763
7763
{
@@ -16590,7 +16590,10 @@ mod tests {
16590
16590
if let Statement::CreateTable(v) = &ast[0] {
16591
16591
assert_eq!(
16592
16592
v.columns[0].options[0].option,
16593
- ColumnOption::Srid(Expr::value(Value::Number("4326".parse().unwrap(), false)))
16593
+ ColumnOption::Srid(Box::new(Expr::value(Value::Number(
16594
+ "4326".parse().unwrap(),
16595
+ false
16596
+ ))))
16594
16597
);
16595
16598
}
16596
16599
}
You can’t perform that action at this time.
0 commit comments