Skip to content

Commit 609b2c8

Browse files
Adressed PR requirements
1 parent 1fb21cd commit 609b2c8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/sqlparser_postgres.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4304,12 +4304,9 @@ $$"#;
43044304
remote_connection: None,
43054305
})
43064306
);
4307-
}
43084307

4309-
#[test]
4310-
fn parser_create_function_with_invalid_args() {
4311-
let sql = "CREATE FUNCTION add(function(struct<a,b> int64), b INTEGER) RETURNS INTEGER LANGUAGE SQL IMMUTABLE STRICT PARALLEL SAFE AS 'select $1 + $2;'";
4312-
assert!(pg().parse_sql_statements(sql).is_err(),);
4308+
let incorrect_sql = "CREATE FUNCTION add(function(struct<a,b> int64), b INTEGER) RETURNS INTEGER LANGUAGE SQL IMMUTABLE STRICT PARALLEL SAFE AS 'select $1 + $2;'";
4309+
assert!(pg().parse_sql_statements(incorrect_sql).is_err(),);
43134310
}
43144311

43154312
#[test]

0 commit comments

Comments
 (0)