Skip to content

pgSQL: Non-query syntax errors are dropped sliently #76

Open
@Voileexperiments

Description

@Voileexperiments

If you play with other pgSQL sandboxes online (e.g SQL fiddle or Rextester), if you declare a function with syntax errors in it they'll be reported properly. However, in CW it's dropped silently.

I can't express how many hours I've post trying to do SQL katas that involves creating a function when what I only get is PG::UndefinedFunction: ERROR: function my_function() does not exist at the select statement when my function declaration is not correct. And because I don't have any error messages about the function itself, I can only take stabs in the dark to try to fix it. This is horrible.

Edit: It seems that all query-related errors are caught properly, but all function-related are dropped silently. Besides function declarations, EXECUTE is also exhibiting this behaviour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions