X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 4E2E69DC816 for ; Tue, 10 Jan 2006 13:05:51 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 44658-06 for ; Tue, 10 Jan 2006 13:05:50 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp.pzkagis.cz (gis6.netbox.cz [83.240.30.214]) by postgresql.org (Postfix) with ESMTP id 60F7F9DC809 for ; Tue, 10 Jan 2006 13:05:47 -0400 (AST) Received: from soptik.pzkagis.cz (localhost.localdomain [127.0.0.1]) by smtp.pzkagis.cz (8.13.1/8.13.1) with ESMTP id k0AH5Weq007453; Tue, 10 Jan 2006 18:05:32 +0100 Received: (from luf@localhost) by soptik.pzkagis.cz (8.13.1/8.13.1/Submit) id k0AH5Tef007452; Tue, 10 Jan 2006 18:05:29 +0100 Date: Tue, 10 Jan 2006 18:05:29 +0100 From: Ludek Finstrle To: Milton Cc: pgsql-odbc Subject: Re: Fw: Problem when used union with differents column legth Message-ID: <20060110170529.GA7443@soptik.pzkagis.cz> References: <002901c615e7$90819d40$24000aaa@mapcardoso.com.br> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="GvXjxJ+pjyke8COw" Content-Disposition: inline In-Reply-To: <002901c615e7$90819d40$24000aaa@mapcardoso.com.br> User-Agent: Mutt/1.4.1i X-Virus-Scanned: ClamAV version 0.87.1, clamav-milter version 0.87 on smtp.pzkagis.cz X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.064 required=5 tests=[AWL=0.064] X-Spam-Score: 0.064 X-Spam-Level: X-Archive-Number: 200601/91 X-Sequence-Number: 6906 --GvXjxJ+pjyke8COw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > 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 --GvXjxJ+pjyke8COw Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="psqlodbc-setpos.dif" 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); --GvXjxJ+pjyke8COw--