Hi all,
Attached is a small patch to scan.l for consideration. It hands
yyerror() the position in the query string of the token which caused a
parse error. It is not even close to an implementation of error handling
a-la SQL99 but it certainly makes debugging complicated queries easier.
I've done some testing and it appears to hit the offending token pretty
accurately.
Can anyone find a way to break this? If not, I'd love to see it in 7.3.
Gavin