kputnam / piggly

PL/pgSQL stored procedure code coverage tool
Other
70 stars 14 forks source link

Parse failure on "IF(cond)THEN" #1

Open kputnam opened 13 years ago

kputnam commented 13 years ago

The parser incorrectly requires a space before THEN. But PostgreSQL accepts IF(cond)THEN, because there's a parenthesis to separate the keyword.

The grammar node that needs to change is expressiontUntilThen. There are probably similar bugs in the expressiontUntil... nodes.