pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Cyrille Chepelov <cyrille@chepelov.org>
To: pgsql-odbc@postgresql.org
Subject: Re: of declare/fetch and strange HY010 errors (resolved)
Date: Tue, 12 Aug 2003 11:29:09 +0200
Message-ID: <20030812092909.GA22491@chepelov.org> (raw)
In-Reply-To: <20030807151550.GA3977@chepelov.org>
References: <20030807145659.GA3797@chepelov.org>
	<20030807151550.GA3977@chepelov.org>

Greetings,

sorry for the disturbance; there really was a problem in my code, which
caused spurious SQLEndTran() to be called between the SQLExecute() and the
SQLFetch() -- thus the HY010 was fully justified. What's strange is that
this extra SQLEndTran() doesn't disturb the driver without declare/fetch,
which is why the problem could remain unnoticed for months.

I'd think that an extra mylog("PGAPI_Execute: exit result=%i",retval) just
before the end of PGAPI_Execute() might have helped me find the problem
faster (without creating this list traffic). Also, being able to use
declare/fetch on a selective basis would still be an interesting feature, IMO
(e.g, using declare/fetch unless the statement attrutes force a fallback to
the classic behaviour); unfortunately, I wasn't able to successfully
recompile the driver (Visual Studio 6.0 GUI: yields a corrupted executable
[I'm not a heavy VS user, so I might have done something wrong]; VS 6.0
using NMAKE: a .rc file is missing, killing the build. Cygwin: unhappy at
link time because of an undefined reference to WinMain@16'. What's the
current recommended build environment?)

	-- Cyrille

-- 



view thread (3+ messages)

Message-ID: <20030812092909.GA22491@chepelov.org>
Permalink:  ../20030812092909.GA22491@chepelov.org/
Also on:    postgresql.org/message-id/20030812092909.GA22491@chepelov.org

 · 

reply

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: cyrille@chepelov.org
  Subject: Re: of declare/fetch and strange HY010 errors (resolved)
  In-Reply-To: <20030812092909.GA22491@chepelov.org>
  References: <20030807145659.GA3797@chepelov.org> <20030807151550.GA3977@chepelov.org> <20030812092909.GA22491@chepelov.org>

* 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