mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-22 15:04:04 +00:00
Support postgres style CREATE FUNCTION
in GenericDialect
(#1159)
This commit is contained in:
parent
a511c47bd0
commit
9db9d22480
3 changed files with 10 additions and 4 deletions
|
@ -3257,7 +3257,7 @@ fn parse_similar_to() {
|
|||
fn parse_create_function() {
|
||||
let sql = "CREATE FUNCTION add(INTEGER, INTEGER) RETURNS INTEGER LANGUAGE SQL IMMUTABLE AS 'select $1 + $2;'";
|
||||
assert_eq!(
|
||||
pg().verified_stmt(sql),
|
||||
pg_and_generic().verified_stmt(sql),
|
||||
Statement::CreateFunction {
|
||||
or_replace: false,
|
||||
temporary: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue