Skip to content

PostgreSQL parser error #22

@Niax23

Description

@Niax23
  • Error Description
    After successfully configuring the LLM and database, when attempting to use CrackSQL's translate.py to convert PostgreSQL statements, the program encountered an error during parsing of the PostgreSQL statement as shown below:

Image

  • Root Cause:
    In the file ./CrackSQL/backend/preprocessor/antlr_parser/pg_parser/PostgreSQLParser.py, line 35398 the ParseRoutineBody function was undefined. The call of this function will certainly bring about error.

Image

  • Temporary Solution:
    After commenting out this line, the program ran successfully without obvious bug.

I think the tiny change of the code will make the repo better. However, I'm not sure that whether this solution is robust and elegant. Thanks, and looking forward to your insights!

Metadata

Metadata

Assignees

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