pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Boszormenyi Zoltan <zboszor@pr.hu>
Cc: herbert.grohmann@vallourec.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #8893: Precompiler ECPG doesn't check Var-List in Select corrrect.
Date: Mon, 20 Jan 2014 18:48:13 -0500
Message-ID: <6668.1390261693@sss.pgh.pa.us> (raw)
In-Reply-To: <52DDA126.8040003@pr.hu>
References: <20140120115411.26701.48100@wrigleys.postgresql.org>
	<14700.1390232209@sss.pgh.pa.us>
	<52DDA126.8040003@pr.hu>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Boszormenyi Zoltan <zboszor@pr.hu> writes:
> 2014-01-20 16:36 keltezéssel, Tom Lane írta:
>> Unfortunately, that's legal SQL syntax: stoerzeit_a11 is taken as a column
>> alias for sugru_9, even without AS in front of it.

> Still, this particular problem may be caught by the preprocessor.
> The SELECT targetlist is not "*", so the number of members for both
> the targetlist and the user structure (INTO :s_schichtsatz) are known.

Yeah, good point.  There was a comparable complaint a couple days ago
about plpgsql not checking its INTO target count carefully enough.
In both cases we could improve the odds of catching an error, even if
it wouldn't be perfect.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (6+ messages)  latest in thread

Message-ID: <6668.1390261693@sss.pgh.pa.us>
Permalink:  ../6668.1390261693@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6668.1390261693@sss.pgh.pa.us

 · 

reply

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, zboszor@pr.hu, herbert.grohmann@vallourec.com
  Subject: Re: BUG #8893: Precompiler ECPG doesn't check Var-List in Select corrrect.
  In-Reply-To: <6668.1390261693@sss.pgh.pa.us>
  References: <20140120115411.26701.48100@wrigleys.postgresql.org> <14700.1390232209@sss.pgh.pa.us> <52DDA126.8040003@pr.hu> <6668.1390261693@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