pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrus <eetasoft@online.ee>
To: pgsql-odbc@postgresql.org
Subject: Re: Access violation C5 error on Visual FoxPro SQLEXEC() call after error
Date: Wed, 14 Dec 2005 12:13:45 +0200
Message-ID: <dnorav$25ba$1@news.hub.org> (raw)
References: <dngsq4$m5b$1@news.hub.org>
	<20051214011128.GC9345@soptik.pzkagis.cz>

> Dave I propose to rollback your patch for the first Andrus's problem
> as it breaks ODBC specification (if I understand this well):
> | After SQLExecute or SQLExecDirect returns SQL_NEED_DATA and before
> | data has been sent for all data-at-execution parameters,
> | an application can call SQLCancel to cancel the statement execution.
> | After the statement has been canceled, the application can call
> | SQLExecute or SQLExecDirect again.
>
> I think bind parameters can't be destroyed in SQLCancel.
>
> I attach patch which may solve Andrus's problem and change a little
> Dave's patch. I see application may call FreeStmt(SQL_CLOSE) and
> FreeStmt(SQL_RESET_PARAMS). But VFP doesn't call it.

Ludek, thank you.

It's very sad that Visual FoxPro cannot be used with Postgres ODBC driver 
release versions.

I havent seen this problem with MySQL, Oracle and Microsoft SQL ODBC 
drivers.
So it seems that those drivers do not follow ODBC driver specifications?
As you wrote it may be possible to study MySQL ODBC driver source code.

Andrus. 





view thread (18+ messages)  latest in thread

Message-ID: <dnorav$25ba$1@news.hub.org>
Permalink:  ../dnorav$25ba$1@news.hub.org/
Also on:    postgresql.org/message-id/dnorav$25ba$1@news.hub.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: eetasoft@online.ee
  Subject: Re: Access violation C5 error on Visual FoxPro SQLEXEC() call after error
  In-Reply-To: <dnorav$25ba$1@news.hub.org>
  References: <dngsq4$m5b$1@news.hub.org> <20051214011128.GC9345@soptik.pzkagis.cz> <dnorav$25ba$1@news.hub.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