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 94BA7D1B8AB for ; Thu, 28 Aug 2003 18:18: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 62594-08 for ; Thu, 28 Aug 2003 15:18:49 -0300 (ADT) Received: from db1.internal.infocon-inc.com (unknown [208.25.210.254]) by svr1.postgresql.org (Postfix) with ESMTP id B034FD1B947 for ; Thu, 28 Aug 2003 15:18:47 -0300 (ADT) Received: from [192.168.0.71] (helo=p000014) by db1.internal.infocon-inc.com with smtp (Exim 3.35 #1 (Debian)) id 19sOep-0001Um-00 for ; Thu, 28 Aug 2003 08:25:55 -0700 Message-ID: <005d01c36d91$7d7bb290$4700a8c0@p000014> From: "Brian J. Erickson" To: Subject: ODBC, SQLExecute and HY010 Date: Thu, 28 Aug 2003 11:23:33 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" 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-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests=BAYES_30, RCVD_IN_OSIRUSOFT_COM X-Spam-Level: X-Archive-Number: 200308/70 X-Sequence-Number: 3190 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. I have tried to generate a log file, but it doesn't seem to helpful. Thanks. ----------------------------Log File----------------------------------- [1036]CopyCommonAttributes: A7=100;A8=4096;A9=0;B0=254;B1=8190;B2=0;B3=0;B4=1;B5=1;B6=0;B7=1;B8=0;B9=1;C 0=0;C1=0;C2=dd_;[1036]attribute = 'UID', value = 'account' [1036]CopyCommonAttributes: A7=100;A8=4096;A9=0;B0=254;B1=8190;B2=0;B3=0;B4=1;B5=1;B6=0;B7=1;B8=0;B9=1;C 0=0;C1=0;C2=dd_;[1036]attribute = 'Servername', value = 'host' [1036]CopyCommonAttributes: A7=100;A8=4096;A9=0;B0=254;B1=8190;B2=0;B3=0;B4=1;B5=1;B6=0;B7=1;B8=0;B9=1;C 0=0;C1=0;C2=dd_;[1036]attribute = 'Password', value = 'xxxxx' [1036]CopyCommonAttributes: A7=100;A8=4096;A9=0;B0=254;B1=8190;B2=0;B3=0;B4=1;B5=1;B6=0;B7=1;B8=0;B9=1;C 0=0;C1=0;C2=dd_;[1036]attribute = 'Database', value = 'database' [1036]CopyCommonAttributes: A7=100;A8=4096;A9=0;B0=254;B1=8190;B2=0;B3=0;B4=1;B5=1;B6=0;B7=1;B8=0;B9=1;C 0=0;C1=0;C2=dd_;