Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TW8oG-0005WF-GE for pgsql-bugs@postgresql.org; Wed, 07 Nov 2012 16:49:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TW8oE-0002WI-Mw for pgsql-bugs@postgresql.org; Wed, 07 Nov 2012 16:49:00 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id qA7GmsKK010384; Wed, 7 Nov 2012 11:48:55 -0500 (EST) From: Tom Lane To: Denis Feklushkin cc: pgsql-bugs Subject: Re: PQsendQueryParams() causes prepared statement error In-reply-to: <1352255590.27348.11.camel@localhost> References: <1352255590.27348.11.camel@localhost> Comments: In-reply-to Denis Feklushkin message dated "Wed, 07 Nov 2012 10:33:10 +0800" Date: Wed, 07 Nov 2012 11:48:54 -0500 Message-ID: <10383.1352306934@sss.pgh.pa.us> X-Pg-Spam-Score: -2.3 (--) X-Archive-Number: 201211/27 X-Sequence-Number: 34585 Denis Feklushkin writes: > in 9.2.0: > PQsendQueryParams() with multiple command statement (like "select 123; > select 456") unexpectedly causes error: > "cannot insert multiple commands into a prepared statement." This is not a bug, it's intentional (and documented) behavior. regards, tom lane