pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ludek Finstrle <luf@pzkagis.cz>
To: Dave Page <dpage@vale-housing.co.uk>
Cc: pgsql-odbc@postgresql.org
Subject: Re: SQLTables don't stop
Date: Fri, 9 Dec 2005 15:04:18 +0100
Message-ID: <20051209140418.GA13154@soptik.pzkagis.cz> (raw)
In-Reply-To: <20051209114058.GA12145@soptik.pzkagis.cz>
References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4E7E7F7@ratbert.vale-housing.co.uk>
	<20051209114058.GA12145@soptik.pzkagis.cz>

> > > I didn't fix something similar. I don't remember it at least. Could
> > > you be more specific? I only point at Prepare, Execute, Execute or
> > > ExecDirect, ExecDirect problem.
> > 
> > There was a fix for SQLTables where Declare/Fetch messed things up for
> > Borland SQL Explorer/BDE by duplicating rows.
> 
> Yes. I didn't think it's problem. But maybe it is.

I rollbacked the patch and problem is still here. I locate it
and fix. Patch attached.

There is problem in mixing different STMTs :-(

Luf

Attachments:

psqlodbc-fetchcursor.diff (text/plain, 849B) download diff -c psqlodbc.orig\statement.c psqlodbc\statement.c *** psqlodbc.orig\statement.c Wed Nov 30 13:44:37 2005 --- psqlodbc\statement.c Fri Dec 09 15:55:58 2005 *************** *** 242,250 **** --- 242,252 ---- { StatementClass *rv; + mylog("SC_Constructor: entering ...\n"); rv = (StatementClass *) malloc(sizeof(StatementClass)); if (rv) { + mylog("SC_Constructor: created stmt = %u\n",rv); rv->hdbc = NULL; /* no connection associated yet */ rv->phstmt = NULL; rv->result = NULL; *************** *** 974,979 **** --- 976,982 ---- if ((((self->currTuple + 1) % ci->drivers.fetch_max) >= QR_get_num_total_tuples(res)) && QR_get_num_total_tuples(res) < ci->drivers.fetch_max) { + SC_no_fetchcursor(self); self->currTuple = QR_get_num_total_tuples(res); return SQL_NO_DATA_FOUND; }

view thread (5+ messages)  latest in thread

Message-ID: <20051209140418.GA13154@soptik.pzkagis.cz>
Permalink:  ../20051209140418.GA13154@soptik.pzkagis.cz/
Also on:    postgresql.org/message-id/20051209140418.GA13154@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, dpage@vale-housing.co.uk
  Subject: Re: SQLTables don't stop
  In-Reply-To: <20051209140418.GA13154@soptik.pzkagis.cz>
  References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4E7E7F7@ratbert.vale-housing.co.uk> <20051209114058.GA12145@soptik.pzkagis.cz> <20051209140418.GA13154@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