Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail parse function creation DDLs with native function body #254

Open
aight8 opened this issue Sep 10, 2022 · 0 comments
Open

Fail parse function creation DDLs with native function body #254

aight8 opened this issue Sep 10, 2022 · 0 comments

Comments

@aight8
Copy link

aight8 commented Sep 10, 2022

Simple example:

create function example() returns int
return 13;

This is working since postgres 14 - see docs https://www.postgresql.org/docs/current/sql-createfunction.html

The same function written in a more SQL-conforming style, using argument names and an unquoted body:

CREATE FUNCTION add(a integer, b integer) RETURNS integer
    LANGUAGE SQL
    IMMUTABLE
    RETURNS NULL ON NULL INPUT
    RETURN a + b;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant