X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 2D895D1B899 for ; Fri, 5 Sep 2003 16:14:22 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 54202-02 for ; Fri, 5 Sep 2003 13:13:50 -0300 (ADT) Received: from web13802.mail.yahoo.com (web13802.mail.yahoo.com [216.136.175.12]) by svr1.postgresql.org (Postfix) with SMTP id B27E1D1B897 for ; Fri, 5 Sep 2003 13:13:49 -0300 (ADT) Message-ID: <20030905161348.25810.qmail@web13802.mail.yahoo.com> Received: from [216.173.173.66] by web13802.mail.yahoo.com via HTTP; Fri, 05 Sep 2003 09:13:48 PDT Date: Fri, 5 Sep 2003 09:13:48 -0700 (PDT) From: Chris Gamache Reply-To: cgg007@yahoo.com Subject: Re: ODBC Connection Pooling (Windows 2000 MDAC 2.7 patched, pgodbc-7.02.00.05) To: pgsql-odbc@postgresql.org Cc: Oliver Elphick , Bruce Momjian In-Reply-To: <3F57CF97.1680E509@tpf.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/28 X-Sequence-Number: 3226 Rats... In that case, the application creating the connection would have to issue a command to the back-end before running any other SQL statements. --- Hiroshi Inoue wrote: > Chris Gamache wrote: > > > > That is my point exactly. That is why (windows?) connection > > pooling breaks this model. It wouldn't be a problem if there > > were a way to undefine currval() for all sequences... > > It would be a command issued by the ODBC driver when the > > connection is made (best), or by the connecting process as > > its first order of business (do-able). > > How could the driver know if the connection is recycled ? > SQL..Connect API function isn't called when the connection > is recycled. > > regards, > Hiroshi Inoue > http://www.geocities.jp/inocchichichi/psqlodbc/ __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com