pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bradley Kieser <brad@kieser.net>
To: pgsql-admin@postgresql.org
Subject: Where to submit a bug report?
Date: Tue, 04 May 2004 18:50:09 +0000
Message-ID: <4097E5E1.2040105@kieser.net> (raw)

Hi All,

Is this the correct place to submit a bug report or should I do it 
somewhere else?

BUG DETAILS:

PG version 7.4.2
Platform: Linux

BUG DESC:

Using aliases in the "select" part of a select clause isn't strongly 
checked against the alias definitions in the FROM part of the SQL. 
Specifically, if the alias in the "select" clause matches another table 
name (not in the FROM list), then the select is applied against that 
other table whereas the correct action would be to chuck and error.

EXAMPLE:

One table: acct_dets
One view: acct_dets_view created as select * from acct_dets_table where XXXX

Select acct_dets.aaa, acct_dets.bbb from acct_dets_view;

The above select is accepted and processed when it SHOULD throw an error.

This was discovered using JBuilderX and JBDC when a baseline table was 
moved into a view to add security constraints to the dataset. It is a 
feature of JB that is always pre-pends the table name as an alias in the 
select clause, so the name change  to the _view part changed in the FROM 
clause but (my error) I forgot to change the select columns in one of 
the queries. The result was that the view was bypassed.

Thanks,

Brad



view thread (3+ messages)  latest in thread

Message-ID: <4097E5E1.2040105@kieser.net>
Permalink:  ../4097E5E1.2040105@kieser.net/
Also on:    postgresql.org/message-id/4097E5E1.2040105@kieser.net

 · 

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-admin@postgresql.org
  Cc: brad@kieser.net
  Subject: Re: Where to submit a bug report?
  In-Reply-To: <4097E5E1.2040105@kieser.net>
  References: <4097E5E1.2040105@kieser.net>

* 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