Re: editors with colum positioning for debugging?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Joel Fradkin" <jfradkin(at)wazagua(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: editors with colum positioning for debugging?
Date: 2005-01-22 22:21:24
Message-ID: 26048.1106432484@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Joel Fradkin" <jfradkin(at)wazagua(dot)com> writes:
> My question is I dont see an easy way to find an error.
> Typical error text is syntax error at or near "trans" at character 825
> But determining character 825 is a little slow by hand.

PG 8.0 produces more useful output. A trivial example:

regression=# select
regression-# 1/0 as a,
regression-# 1/ as b,
regression-# 1/2 as c;
ERROR: syntax error at or near "as" at character 27
LINE 3: 1/ as b,
^
regression=#

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Joel Fradkin 2005-01-22 22:36:41 Re: editors with colum positioning for debugging?
Previous Message Joel Fradkin 2005-01-22 22:12:52 editors with colum positioning for debugging?