Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id C24F54762F8; Fri, 20 Dec 2002 13:00:23 -0500 (EST) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by postgresql.org (Postfix) with ESMTP id 990AC476197; Fri, 20 Dec 2002 12:59:48 -0500 (EST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id gBKHxdV19973; Fri, 20 Dec 2002 12:59:39 -0500 (EST) From: Bruce Momjian Message-Id: <200212201759.gBKHxdV19973@candle.pha.pa.us> Subject: Re: EXECUTE status (was Re: [ODBC] About server side prepare) In-Reply-To: <23639.1040407015@sss.pgh.pa.us> To: Tom Lane Date: Fri, 20 Dec 2002 12:59:39 -0500 (EST) Cc: Hiroshi Inoue , pgsql-hackers@postgresql.org, "pgsql-odbc@postgresql.org" X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/1033 X-Sequence-Number: 33488 Tom Lane wrote: > Bruce Momjian writes: > > I think it should return "EXECUTE" with the counts from the commands. > > Does that make sense? > > No. It would break client libraries, which only expect command tags > INSERT, UPDATE, DELETE to be followed by counts. Also, INSERT has two > numbers associated with it, the others only one; if we allow both those > cases for EXECUTE then life gets even worse for the client library. It is easy to determine what tag to return? Remember the discussion on rules and that only the original tag should be returned. Is there always one obvious tag to an execute? -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073