X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.192]) by svr1.postgresql.org (Postfix) with ESMTP id 85BB3D1C4E6 for ; Tue, 22 Jul 2003 08:02:32 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr4.postgresql.org [64.117.224.192]) (amavisd-new, port 10024) with ESMTP id 43003-01 for ; Tue, 22 Jul 2003 08:02:29 +0000 (GMT) Received: from eins.siemens.at (eins.siemens.at [193.81.246.11]) by svr1.postgresql.org (Postfix) with ESMTP id 66301D1C4DC for ; Tue, 22 Jul 2003 05:02:28 -0300 (ADT) Received: from scesie13.sie.siemens.at (forix [10.1.140.2]) by eins.siemens.at (8.12.9/8.12.8) with ESMTP id h6M82PcR021426 for ; Tue, 22 Jul 2003 10:02:29 +0200 Received: from siemens.com (atws15tc.sie.siemens.at [158.226.135.41]) by scesie13.sie.siemens.at (8.12.9/8.12.1) with ESMTP id h6M7mfmv023982 for ; Tue, 22 Jul 2003 09:50:03 +0200 (MET DST) Message-ID: <3F1CEC54.4050302@siemens.com> Date: Tue, 22 Jul 2003 09:48:36 +0200 From: Peter Kovacs User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc-list Subject: Re: Prepared Statements References: <3F18259C.6090503@redhat.com> <1058548037.19658.159.camel@topanga.toronto.redhat.com> <3F183004.4010508@openratings.com> <3F1830F6.3020203@openratings.com> <1058550328.19657.168.camel@topanga.toronto.redhat.com> <3F183423.9030900@openratings.com> <1058551402.20165.177.camel@topanga.toronto.redhat.com> <3F183AE0.8060204@openratings.com> <20030719012555.GA20158@opencloud.com> <3F1AC5D1.4010307@openratings.com> <20030721000241.GB665@opencloud.com> <3F1B51C5.4080108@openratings.com> <3F1BDA47.4090709@redhat.com> <3F1BEFED.9040609@siemens.com> <3944.1058853363@sss.pgh.pa.us> In-Reply-To: <3944.1058853363@sss.pgh.pa.us> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/361 X-Sequence-Number: 7745 Tom Lane wrote: >Peter Kovacs writes: > > >>I think that the simplest thing would be to have an option in the >>backend to disable processing of multiple statements in one query -- >>i.e. disallow the use of ';' as a separator of statements. >> >> > >FWIW, the new "extended query" protocol has exactly such a restriction. >However that hardly excuses any sloppiness in allowing >non-syntax-checked parameter values through. Consider changing >"WHERE x < ?" to >"WHERE x < 42 AND my_function_with_interesting_side_effects()" > >No semicolons in sight, but I can still clean out your bank balance ;-) > ...and it would serve me right :(. BTW, I presume that one can deny a user the right to create stored procedures in PostgreSQL. Anyway, I now recognize that the issue is more complicated than allowing';'. Regards, Peter > > regards, tom lane > >