Hi!

Postgres returns unreadable syntax error messageges like

Syntax error at or near ')'

If there are many ) characters in query, it is not possible to find the palce where error occurs.

STATEMENT_POSITION is difficult to use since drivers perform parameter replacements which makes this different from source position.

How to fix this so that 3 last tokens are returned in message like

Syntax error at or near ' i > )'

Andrus.

Reply via email to