From: Richard Broersma <richard.broersma@gmail.com>
To: Pam Driscoll <pamd@us.ibm.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: SELECT INVALID SELECT STATEMENT TO FORCE ODBC DRIVER TO UNPREPARED STATE
Date: Mon, 30 Jun 2008 13:08:04 -0700
Message-ID: <396486430806301308p7a2e214dv23bfaa95011601b8@mail.gmail.com> (raw)
In-Reply-To: <OF79BBD318.5BAC731F-ON85257478.00559B92-85257478.00565001@us.ibm.com>
References: <OF79BBD318.5BAC731F-ON85257478.00559B92-85257478.00565001@us.ibm.com>
On Mon, Jun 30, 2008 at 8:42 AM, Pam Driscoll <pamd@us.ibm.com> wrote:
> I'm having the same problem you reported, but only when connecting to an
> Oracle 10.2 database. Our code works fine on earlier versions of Oracle as
> well as DB2 and SQL Server. Did you ever figure out what the problem was and
> how to resolve it?
Yes. The cause was unexpected. The short answer was that while
inside a transaction I was re-assigning a recordset object variable to
point to a newly instantiated recordset object without first closing
the recordset object that previously pointed to. ADO didn't like
this, so it purposely passed an invalid SQL statement to the server so
that the server would be forced a rollback of the entire transaction.
The statement: "SELECT INVALID SELECT STATEMENT TO FORCE ODBC DRIVER
TO UNPREPARED STATE;" is what ADO passed to the server to force an
exception.
Although I have only experienced this project with reassigning opened
recordset object references, I would expect and reassigning other
opened ADODB object would produce the same result.
--
Regards,
Richard Broersma Jr.
Visit the Los Angles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug
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: richard.broersma@gmail.com, pamd@us.ibm.com
Subject: Re: SELECT INVALID SELECT STATEMENT TO FORCE ODBC DRIVER TO UNPREPARED STATE
In-Reply-To: <396486430806301308p7a2e214dv23bfaa95011601b8@mail.gmail.com>
References: <OF79BBD318.5BAC731F-ON85257478.00559B92-85257478.00565001@us.ibm.com> <396486430806301308p7a2e214dv23bfaa95011601b8@mail.gmail.com>
* 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