pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ludek Finstrle <luf@pzkagis.cz>
To: Miguel Juan <mjuan@cibal.es>
Cc: Dave Page <dpage@vale-housing.co.uk>
Cc: pgsql-odbc@postgresql.org
Subject: Re: psqlOdbc Ansi + BDE issues
Date: Sun, 27 Nov 2005 23:01:09 +0100
Message-ID: <20051127220109.GA21801@soptik.pzkagis.cz> (raw)
In-Reply-To: <001001c5f047$e64e90e0$07c8a8c0@Miguel>
References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4E7E183@ratbert.vale-housing.co.uk>
	<001001c5f047$e64e90e0$07c8a8c0@Miguel>

Hello,

> the problem is produced by the 'Use declare fetch' option. If it
> is unchecked the SQL explorer works OK. Otherwise, if it's checked
> each table appears a few times, depending on the number of tables
> in the database.

Not so exactly. It depend on the number of tables _and_ cache size
parametr. The problem is in fetching all rows in PGAPI_Tables
but excepting only "cache size" entries in PGAPI_ExtendedFetch.

I attach one line patch. Try it and report next problems.

Best regards,

Luf

Attachments:

psqlodbc-tables.diff (text/plain, 1.1K) download diff -c psqlodbc.orig\statement.c psqlodbc\statement.c *** psqlodbc.orig\statement.c Wed Nov 09 16:26:07 2005 --- psqlodbc\statement.c Sun Nov 27 23:45:24 2005 *************** *** 1061,1070 **** mylog("type = %d\n", type); if (self->manual_result) ! { ! if (ci->drivers.use_declarefetch) ! value = QR_get_value_manual(res, (self->currTuple >= ci->drivers.fetch_max) ? (self->currTuple % ci->drivers.fetch_max) : self->currTuple, lf); ! else value = QR_get_value_manual(res, self->currTuple, lf); mylog("manual_result\n"); } --- 1061,1073 ---- mylog("type = %d\n", type); if (self->manual_result) ! { ! ! if ((ci->drivers.use_declarefetch) && (self->currTuple >= QR_get_num_total_tuples(res))) ! value = QR_get_value_manual(res, (self->currTuple >= ci->drivers.fetch_max) ? (self->currTuple % ci->drivers.fetch_max) : self->currTuple, lf); ! ! else ! value = QR_get_value_manual(res, self->currTuple, lf); mylog("manual_result\n"); }

view thread (10+ messages)  latest in thread

Message-ID: <20051127220109.GA21801@soptik.pzkagis.cz>
Permalink:  ../20051127220109.GA21801@soptik.pzkagis.cz/
Also on:    postgresql.org/message-id/20051127220109.GA21801@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, mjuan@cibal.es, dpage@vale-housing.co.uk
  Subject: Re: psqlOdbc Ansi + BDE issues
  In-Reply-To: <20051127220109.GA21801@soptik.pzkagis.cz>
  References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4E7E183@ratbert.vale-housing.co.uk> <001001c5f047$e64e90e0$07c8a8c0@Miguel> <20051127220109.GA21801@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