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

CREATE FUNCTION support #756

Closed
fulghum opened this issue Sep 25, 2024 · 1 comment
Closed

CREATE FUNCTION support #756

fulghum opened this issue Sep 25, 2024 · 1 comment
Labels
data import enhancement New feature or request

Comments

@fulghum
Copy link
Contributor

fulghum commented Sep 25, 2024

Doltgres does not yet support user-defined functions created through CREATE FUNCTION statements.

Example from Sakila data dump:

CREATE FUNCTION _group_concat(text, text) RETURNS text
    AS $_$
SELECT CASE
  WHEN $2 IS NULL THEN $1
  WHEN $1 IS NULL THEN $2
  ELSE $1 || ', ' || $2
END
$_$
    LANGUAGE sql IMMUTABLE;

Discovered through testing the Sakila data dump.

@fulghum
Copy link
Contributor Author

fulghum commented Mar 6, 2025

Initial support for CREATE FUNCTION has been released. We don't yet support all syntax for PL/pgSQL functions. Please open new issues requesting specific additional features for user-defined functions.

@fulghum fulghum closed this as completed Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data import enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant