Support postgres style CREATE FUNCTION in GenericDialect (#1159)

This commit is contained in:
Andrew Lamb 2024-03-01 13:43:29 -05:00 committed by GitHub
parent a511c47bd0
commit 9db9d22480
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 4 deletions

View file

@ -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,