>>>>> "David" == "David E Wheeler" <da...@kineticode.com> writes:

 David> Hey All,
 David> I was just getting a new version of pgTAP ready for release, and while 
testing it on HEAD, I got this error:

 David> + psql:pgtap.sql:5789: ERROR:  syntax error at end of input
 David> + LINE 28:                 IF verbose THEN RETURN NEXT diag(tests[i] 
||...
 David> +                                    ^

 David> I asked on IRC, and Andrew “RhodiumToad” Gierth pointed out
 David> that it became a reserved word at some point. I'm fine to
 David> rename my variable, but Andew and I were wondering if it's
 David> really necessary for "verbose" to be reserved, since it's not
 David> in the spec.

Looking at it more closely, this is likely to be fallout from the
plpgsql lexer/parser changes; it probably worked before only because
plpgsql was doing its own thing rather than using the main lexer.

VERBOSE has been reserved all along in order to distinguish 
'vacuum verbose;' from 'vacuum tablename;' and so on; but it's still an
interesting pitfall for plpgsql users.

-- 
Andrew (irc:RhodiumToad)

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to