From: Hiroshi Inoue <Inoue@tpf.co.jp>
To: Brian J. Erickson <ericksbr@infocon-inc.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: ODBC, SQLExecute and HY010
Date: Tue, 02 Sep 2003 12:21:16 +0900
Message-ID: <3F540CAC.A9AE419B@tpf.co.jp> (raw)
References: <005d01c36d91$7d7bb290$4700a8c0@p000014>
"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/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: Inoue@tpf.co.jp, ericksbr@infocon-inc.com
Subject: Re: ODBC, SQLExecute and HY010
In-Reply-To: <3F540CAC.A9AE419B@tpf.co.jp>
References: <005d01c36d91$7d7bb290$4700a8c0@p000014> <3F540CAC.A9AE419B@tpf.co.jp>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox