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 973E9D1B8CB for ; Tue, 2 Sep 2003 03:20:58 +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 10886-07 for ; Tue, 2 Sep 2003 00:20:26 -0300 (ADT) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by svr1.postgresql.org (Postfix) with SMTP id 3EE1BD1B53A for ; Tue, 2 Sep 2003 00:20:25 -0300 (ADT) Received: (qmail 15701 invoked from network); 2 Sep 2003 03:20:24 -0000 Received: from unknown (HELO viscomail.tpf.co.jp) (100.0.0.108) by sd2.tpf-fw-c.co.jp with SMTP; 2 Sep 2003 03:20:24 -0000 Received: from tpf.co.jp ([126.0.1.68]) by viscomail.tpf.co.jp (8.8.8+Sun/8.8.8) with ESMTP id MAA10626; Tue, 2 Sep 2003 12:20:22 +0900 (JST) Message-ID: <3F540CAC.A9AE419B@tpf.co.jp> Date: Tue, 02 Sep 2003 12:21:16 +0900 From: Hiroshi Inoue X-Mailer: Mozilla 4.73 [ja] (Windows NT 5.0; U) X-Accept-Language: ja MIME-Version: 1.0 To: "Brian J. Erickson" Cc: pgsql-odbc@postgresql.org Subject: Re: ODBC, SQLExecute and HY010 References: <005d01c36d91$7d7bb290$4700a8c0@p000014> Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/6 X-Sequence-Number: 3204 "Brian J. Erickson" wrote: > > Hello, > > I have been getting intermentent errors > with SQLExecute. > Using SQLGetDiagRec, I get: > "HY010\nError Code: 3\nConnection is already in use." > > I am running: > The latest postgresql ODBC driver. > Windows 2000 > VC++ 6.0 > The application is muliti-threaded. > Functions are called via CRecordset. > > I have wrapped the queries in critical > sections, which seemed to minimized > the problem, but not eliminate it. > > The problem seems to be occuring in the function: > SC_execute(StatementClass *self) > Line: conn->status = CONN_EXECUTING; > Lines: if (CONN_DOWN != conn->status) > conn->status = oldstatus; > > If I set the next execution line for the SQLExecute function, > the command executes just fine. Could you trythe latest snapshot at http://www.geocities.jp/inocchichichi/psqlodbc/ ? regards, Hiroshi Inoue http://www.geocities.jp/inocchichichi/psqlodbc/