pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ludek Finstrle <luf@pzkagis.cz>
To: pgsql-odbc@postgresql.org
Subject: Bug in clear_error in SQLExecute? (fwd)
Date: Fri, 9 Jan 2004 22:50:47 +0100
Message-ID: <20040109215047.GA16187@soptik.pzkagis.cz> (raw)

> Hello,
> 
>   I think I found a bug in SQLExecute. IMHO SC_clean_error should be
> called there only sometimes as you can see from my patch created
> againist fresh CVS snapshot.
> 
> Without this patch application fail becouse error is produced in Fetch
> instead of in Execute.
> 
> Commments are welcome
> 
> Luf

I forgot attach the patch so I try it again.

Luf

Attachments:

odbc-clean_error.diff (text/plain, 323B) download --- PgSQL.orig/ODBC/odbcapi.c 2004-01-09 14:22:11.000000000 +0100 +++ PgSQL/ODBC/odbcapi.c 2004-01-09 22:17:41.054945600 +0100 @@ -333,6 +333,7 @@ mylog("[SQLExecute]"); ENTER_STMT_CS(stmt); + if (stmt->status == STMT_FINISHED) SC_clear_error(stmt); ret = PGAPI_Execute(StatementHandle, 0); LEAVE_STMT_CS(stmt);

Message-ID: <20040109215047.GA16187@soptik.pzkagis.cz>
Permalink:  ../20040109215047.GA16187@soptik.pzkagis.cz/
Also on:    postgresql.org/message-id/20040109215047.GA16187@soptik.pzkagis.cz

 ·  · 

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: luf@pzkagis.cz
  Subject: Re: Bug in clear_error in SQLExecute? (fwd)
  In-Reply-To: <20040109215047.GA16187@soptik.pzkagis.cz>
  References: <20040109215047.GA16187@soptik.pzkagis.cz>

* 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