From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joel Fradkin <jfradkin@wazagua.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: editors with colum positioning for debugging?
Date: Sat, 22 Jan 2005 17:21:24 -0500
Message-ID: <26048.1106432484@sss.pgh.pa.us> (raw)
In-Reply-To: <000201c500cf$8504c600$797ba8c0@jfradkin>
References: <000201c500cf$8504c600$797ba8c0@jfradkin>
"Joel Fradkin" <jfradkin@wazagua.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, jfradkin@wazagua.com
Subject: Re: editors with colum positioning for debugging?
In-Reply-To: <26048.1106432484@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox