Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id EA6D665054D for ; Tue, 15 Jul 2008 09:24:34 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 18117-04 for ; Tue, 15 Jul 2008 09:24:28 -0300 (ADT) Received: from pgfoundry.org (pgfoundry.org [200.46.204.130]) by postgresql.org (Postfix) with ESMTP id E300E650084 for ; Tue, 15 Jul 2008 09:24:33 -0300 (ADT) Received: from localhost (unknown [200.46.208.211]) by pgfoundry.org (Postfix) with ESMTP id 463F817ADCC1; Tue, 15 Jul 2008 12:24:34 +0000 (UTC) Received: from pgfoundry.org ([200.46.204.130]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 17335-06; Tue, 15 Jul 2008 09:24:28 -0300 (ADT) Received: by pgfoundry.org (Postfix, from userid 80) id 98C3917AD22E; Tue, 15 Jul 2008 12:24:33 +0000 (UTC) To: noreply@pgfoundry.org From: Subject: [ psqlodbc-Bugs-1010431 ] Bug in PGAPI_ExtendedFetch() Content-type: text/plain; charset=UTF-8 Message-Id: <20080715122433.98C3917AD22E@pgfoundry.org> Date: Tue, 15 Jul 2008 12:24:33 +0000 (UTC) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200807/2 X-Sequence-Number: 9557 Bugs item #1010431, was opened at 2008-07-15 14:24 You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1010431&group_id=1000125 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Kai Henning (kai_khcyt) Assigned to: Nobody (None) Summary: Bug in PGAPI_ExtendedFetch() Initial Comment: PostgreSQL 8.3.3 PostgreSQl ODBC Driver 08.03.0200 IMHO is an bug within the function PGAPI_ExtendedFetch() (file result.c). This error is occur when query a rowset with number of n rows (n >1) and SQL_ATTR_ROW_ARRAY_SIZE is greater than 1 an less than n (in second and subsequent calls of PGAPI_ExtendedFetch() via SQLFetch()/ SQLFetchScroll()). starting with the line 1482 switch (fFetchType) { case SQL_FETCH_NEXT: ... else SC_inc_rowset_start(stmt, progress_size); <-- line 1515 should be changed to SC_inc_rowset_start(stmt, stmt->last_fetch_count); because the offset to determine the following rows depends on the number of previously retrieved rows, but not on the number of lines requested. best regards Kai ---------------------------------------------------------------------- You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1010431&group_id=1000125