• T
    Improve parser so that we can show an error cursor position for errors · 20ab467d
    Tom Lane 提交于
    during parse analysis, not only errors detected in the flex/bison stages.
    This is per my earlier proposal.  This commit includes all the basic
    infrastructure, but locations are only tracked and reported for errors
    involving column references, function calls, and operators.  More could
    be done later but this seems like a good set to start with.  I've also
    moved the ReportSyntaxErrorPosition logic out of psql and into libpq,
    which should make it available to more people --- even within psql this
    is an improvement because warnings weren't handled by ReportSyntaxErrorPosition.
    20ab467d
union.out 7.6 KB