X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id A2859D1F0CF for ; Tue, 4 May 2004 14:52:54 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 79723-04 for ; Tue, 4 May 2004 14:52:32 -0300 (ADT) Received: from kieser1.thirdspace.tv (unknown [195.166.116.245]) by svr1.postgresql.org (Postfix) with ESMTP id EB30FD1CA32 for ; Tue, 4 May 2004 14:52:30 -0300 (ADT) Received: from kieser.net (localhost.localdomain [127.0.0.1]) by kieser1.thirdspace.tv (Postfix) with ESMTP id 906E0696F2 for ; Tue, 4 May 2004 14:50:11 -0400 (EDT) Message-ID: <4097E5E1.2040105@kieser.net> Date: Tue, 04 May 2004 18:50:09 +0000 From: Bradley Kieser User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7b) Gecko/20040316 X-Accept-Language: en, en-us MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Where to submit a bug report? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/33 X-Sequence-Number: 13349 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