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 C215ED1C4D0 for ; Tue, 22 Jul 2003 05:56:50 +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 17266-03 for ; Tue, 22 Jul 2003 05:56:48 +0000 (GMT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 2D512D1C917 for ; Tue, 22 Jul 2003 02:56:48 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h6M5u3Q3003945; Tue, 22 Jul 2003 01:56:03 -0400 (EDT) To: Peter Kovacs Cc: Fernando Nasser , Dima Tkach , Oliver Jowett , Kim Ho , Barry Lind , pgsql-jdbc-list , Dave Cramer Subject: Re: Prepared Statements In-reply-to: <3F1BEFED.9040609@siemens.com> 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> Comments: In-reply-to Peter Kovacs message dated "Mon, 21 Jul 2003 15:51:41 +0200" Date: Tue, 22 Jul 2003 01:56:03 -0400 Message-ID: <3944.1058853363@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/359 X-Sequence-Number: 7743 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 ;-) regards, tom lane