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 5A93AD1B550 for ; Fri, 5 Sep 2003 15:42:24 +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 48038-09 for ; Fri, 5 Sep 2003 12:41:52 -0300 (ADT) Received: from db1.internal.infocon-inc.com (www.infocon-inc.com [208.25.210.254]) by svr1.postgresql.org (Postfix) with ESMTP id 891C0D1B949 for ; Fri, 5 Sep 2003 12:41:51 -0300 (ADT) Received: from [192.168.0.71] (helo=p000014) by db1.internal.infocon-inc.com with smtp (Exim 3.35 #1 (Debian)) id 19vFyH-0007ck-00; Fri, 05 Sep 2003 05:45:49 -0700 Message-ID: <003801c373c4$6236f920$4700a8c0@p000014> From: "Brian J. Erickson" To: "Hiroshi Inoue" Cc: References: <005d01c36d91$7d7bb290$4700a8c0@p000014> <3F540CAC.A9AE419B@tpf.co.jp> Subject: Re: ODBC, SQLExecute and HY010 Date: Fri, 5 Sep 2003 08:42:59 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4922.1500 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4925.2800 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/27 X-Sequence-Number: 3225 Hello, That seemed to solve the problem. Thanks Brian Erickson ----- Original Message ----- From: "Hiroshi Inoue" To: "Brian J. Erickson" Cc: Sent: Monday, September 01, 2003 8:21 PM Subject: Re: [ODBC] ODBC, SQLExecute and HY010 > "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/ > > ---------------------------(end of broadcast)--------------------------- > TIP 9: the planner will ignore your desire to choose an index scan if your > joining column's datatypes do not match >