pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ludek Finstrle <luf@pzkagis.cz>
To: Milton <milton.siqueira@mapcardoso.com.br>
Cc: pgsql-odbc <pgsql-odbc@postgresql.org>
Subject: Re: Fw: Problem when used union with differents column legth
Date: Tue, 10 Jan 2006 18:05:29 +0100
Message-ID: <20060110170529.GA7443@soptik.pzkagis.cz> (raw)
In-Reply-To: <002901c615e7$90819d40$24000aaa@mapcardoso.com.br>
References: <002901c615e7$90819d40$24000aaa@mapcardoso.com.br>

> But when i use rdoResultset(DAO), the result is:
> 
> COL
> -----------
> T1
> T1
> T1
> T1
> T1
> T1

There is a problem in PGAPI_SetPos function.
Please try this patch which solve the problem.

Patch attached. Please test review and comment

Luf

Attachments:

psqlodbc-setpos.dif (text/plain, 453B) download diff -c psqlodbc.orig\results.c psqlodbc\results.c *** psqlodbc.orig\results.c Fri Dec 09 02:55:48 2005 --- psqlodbc\results.c Tue Jan 10 19:04:56 2006 *************** *** 3116,3121 **** --- 3116,3123 ---- if (gdata) for (i = 0; i < num_cols; i++) gdata[i].data_left = -1; + if (irow < rowsetSize) + s.stmt->currTuple = s.stmt->rowset_start + irow - 1; ret = SQL_SUCCESS; #ifdef DRIVER_CURSOR_IMPLEMENT conn = SC_get_conn(s.stmt);

view thread (2+ messages)

Message-ID: <20060110170529.GA7443@soptik.pzkagis.cz>
Permalink:  ../20060110170529.GA7443@soptik.pzkagis.cz/
Also on:    postgresql.org/message-id/20060110170529.GA7443@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, milton.siqueira@mapcardoso.com.br
  Subject: Re: Fw: Problem when used union with differents column legth
  In-Reply-To: <20060110170529.GA7443@soptik.pzkagis.cz>
  References: <002901c615e7$90819d40$24000aaa@mapcardoso.com.br> <20060110170529.GA7443@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