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

Postgres: support CREATE FUNCTION #359

Open
gregwebs opened this issue Feb 20, 2023 · 0 comments
Open

Postgres: support CREATE FUNCTION #359

gregwebs opened this issue Feb 20, 2023 · 0 comments
Labels
psqldef Bugs or feature requests related to PostgreSQL

Comments

@gregwebs
Copy link

Platform

  • OS: macOS (probably all)
  • RDBMS: PostgreSQL
  • Version: v0.15.12

--export output

Input SQL

CREATE FUNCTION public.alphanumericstring(character varying) RETURNS character varying
    LANGUAGE sql
    AS $_$
	SELECT REGEXP_REPLACE($1, '[^a-zA-Z0-9]+', '', 'g')
$_$;

Current output

found syntax error when parsing DDL "CREATE FUNCTION public.alphanumericstring(character varying) RETURNS character varying
    LANGUAGE sql
    AS $_$
	SELECT REGEXP_REPLACE($1, '[^a-zA-Z0-9]+', '', 'g')
$_$": syntax error at position 16 near 'FUNCTION'

Expected output

none

@k0kubun k0kubun added the psqldef Bugs or feature requests related to PostgreSQL label Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
psqldef Bugs or feature requests related to PostgreSQL
Projects
None yet
Development

No branches or pull requests

2 participants