Re: ODBC, SQLExecute and HY010 - Mailing list pgsql-odbc

From Hiroshi Inoue
Subject Re: ODBC, SQLExecute and HY010
Date
Msg-id 3F540CAC.A9AE419B@tpf.co.jp
Whole thread Raw
In response to ODBC, SQLExecute and HY010  ("Brian J. Erickson" <ericksbr@infocon-inc.com>)
List pgsql-odbc
"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/

pgsql-odbc by date:

Previous
From: Hiroshi Inoue
Date:
Subject: Re: Some corrections on psqlodbc driver
Next
From: "E. Zorn (RDG-rational) postsql"
Date:
Subject: Change connection (IP, or Databasename)