From: Tom Lane <tgl@sss.pgh.pa.us>
To: tuckerpmt@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6727: Column does not exist exception has no error code
Date: Wed, 11 Jul 2012 13:43:19 -0400
Message-ID: <14927.1342028599@sss.pgh.pa.us> (raw)
In-Reply-To: <E1SoyWd-0007UF-2N@wrigleys.postgresql.org>
References: <E1SoyWd-0007UF-2N@wrigleys.postgresql.org>
tuckerpmt@gmail.com writes:
> The SQLException that is thrown when performing a query that has a column
> name that is not valid, does not exist, does not contain an error
> code.
Could you provide a specific example? When I try this I see an error
code, 42703:
regression=# \set VERBOSITY verbose
regression=# select nosuchcol from int8_tbl;
ERROR: 42703: column "nosuchcol" does not exist
LINE 1: select nosuchcol from int8_tbl;
^
LOCATION: transformColumnRef, parse_expr.c:766
There may indeed be someplace where the errcode was forgotten, but
without a concrete example it's hard to find where.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, tuckerpmt@gmail.com
Subject: Re: BUG #6727: Column does not exist exception has no error code
In-Reply-To: <14927.1342028599@sss.pgh.pa.us>
References: <E1SoyWd-0007UF-2N@wrigleys.postgresql.org> <14927.1342028599@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