Neil Conway wrote:
Attached is a revised patch.


Patch applied -- thanks, Pavel. I ended up using ERRCODE_SYNTAX_ERROR when a CONTINUE is specified outside a loop. BTW, one minor annoyance is:

<<lbl>>
BEGIN
    LOOP
        CONTINUE lbl;
    END LOOP;
END;

The current implementation will raise an error, as it should, but it does so at runtime, and claims that "CONTINUE cannot be used outside a loop". We could fix this by dividing labels into "block labels" and "loop labels" at compile-time and only accepting a loop label for CONTINUE, but I haven't implemented this yet.

-Neil

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

              http://archives.postgresql.org

Reply via email to