File tree 2 files changed +5
-17
lines changed
2 files changed +5
-17
lines changed Original file line number Diff line number Diff line change @@ -16581,23 +16581,6 @@ mod tests {
16581
16581
}
16582
16582
}
16583
16583
16584
- #[test]
16585
- fn test_mysql_srid_create_table() {
16586
- let sql = r#"CREATE TABLE t (a geometry SRID 4326)"#;
16587
- let ast: Vec<Statement> = Parser::parse_sql(&MySqlDialect {}, sql).unwrap();
16588
-
16589
- assert_eq!(ast.len(), 1);
16590
- if let Statement::CreateTable(v) = &ast[0] {
16591
- assert_eq!(
16592
- v.columns[0].options[0].option,
16593
- ColumnOption::Srid(Box::new(Expr::value(Value::Number(
16594
- "4326".parse().unwrap(),
16595
- false
16596
- ))))
16597
- );
16598
- }
16599
- }
16600
-
16601
16584
#[test]
16602
16585
fn test_replace_into_placeholders() {
16603
16586
let sql = "REPLACE INTO t (a) VALUES (&a)";
Original file line number Diff line number Diff line change @@ -3745,6 +3745,11 @@ fn parse_begin_without_transaction() {
3745
3745
mysql ( ) . verified_stmt ( "BEGIN" ) ;
3746
3746
}
3747
3747
3748
+ #[ test]
3749
+ fn parse_geometric_types_srid_option ( ) {
3750
+ mysql_and_generic ( ) . verified_stmt ( "CREATE TABLE t (a geometry SRID 4326)" ) ;
3751
+ }
3752
+
3748
3753
#[ test]
3749
3754
fn parse_double_precision ( ) {
3750
3755
mysql ( ) . verified_stmt ( "CREATE TABLE foo (bar DOUBLE)" ) ;
You can’t perform that action at this time.
0 commit comments