Re: ODBC, SQLExecute and HY010

From: "Brian J(dot) Erickson" <ericksbr(at)infocon-inc(dot)com>
To: "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp>
Cc: <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: ODBC, SQLExecute and HY010
Date: 2003-09-05 15:42:59
Message-ID: 003801c373c4$6236f920$4700a8c0@p000014
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Hello,

That seemed to solve the problem.

Thanks

Brian Erickson

----- Original Message -----
From: "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp>
To: "Brian J. Erickson" <ericksbr(at)infocon-inc(dot)com>
Cc: <pgsql-odbc(at)postgresql(dot)org>
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
>

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message Chris Gamache 2003-09-05 16:13:48 Re: ODBC Connection Pooling (Windows 2000 MDAC 2.7 patched, pgodbc-7.02.00.05)
Previous Message Relaxin 2003-09-05 09:13:09 ODBC and client-side result sets