Skip to content

[BUG] JSQLParser 4.9 fails to parse subsequent statements after parsing FUNCTION statement #1994

Description

@kxed

hi there!

I am using the JSQLParser4.9 tool to parse SQL DDL statements, but I encountered a problem when parsing the following statement:

SQL Example:

  • Simplified Query Example, focusing on the failing feature
    -- Replace with your ACTUAL example
    DROP FUNCTION IF EXISTS "fin"."restore_fund_data"("in_fund_id" int8);
    CREATE OR REPLACE FUNCTION "fin"."restore_fund_data"("in_fund_id" int8)
    RETURNS "pg_catalog"."varchar" AS $BODY$
    DECLARE
      message VARCHAR;
      open rec_cur;
      close proj_info_cur;
      ********
      RETURN 'success';
    END $BODY$
    LANGUAGE plpgsql VOLATILE
    COST 100;

Software Information:

  • JSqlParser 4.9 and 4.8
  • Database PostgreSQL

Thank you very much!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions