pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
To: John Kew <jkew@tableau.com>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: Re: 9.0.5 issue - duplicate rows returned when using SQL_ATTR_ROW_ARRAY_SIZE attribute
Date: Wed, 20 Jan 2016 20:03:56 +0900
Message-ID: <569F699C.5090209@dream.email.ne.jp> (raw)
In-Reply-To: <CY1PR0301MB197858D2B4F0B69045F09FB5CCC10@CY1PR0301MB1978.namprd03.prod.outlook.com>
References: <CY1PR0301MB19784F9A1AC0529A01B832ACCCC00@CY1PR0301MB1978.namprd03.prod.outlook.com>
	<CY1PR0301MB197858D2B4F0B69045F09FB5CCC10@CY1PR0301MB1978.namprd03.prod.outlook.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

Hi John,

Thanks for the test case.

On 2016/01/20 5:46, John Kew wrote:
>
> Folks,
>
>
> As promised here is a repro of the issue we are seeing using some 
> generated data in a temp table. The first query returns the correct 
> results for both 9.0.3 and 9.0.5; whereas the second returns the wrong 
> results with 9.0.5 only.
>
>
>

The result seems to be right here.

SELECT "postgres_test"."dim1" AS "dim1", "postgres_test"."dim2" AS 
"dim2", "postgres_test"."dim3" AS "dim3", "postgres_test"."dim4" AS 
"dim4", "postgres_test"."
dim5" AS "dim5", SUM("postgres_test"."meas1") AS "sum:meas1:ok", 
"postgres_test"."dim6" AS "dim6" FROM "postgres_test" "postgres_test" 
GROUP BY 1, 2,  3,  4, 5,  7

    with rowArraySize 1, number of rows returned by query is 120
    rows returned by query with rowArraySize=84:
       fetchIdx=1, fetched rows=84, total rows=84
       fetchIdx=2, fetched rows=36, total rows=120

regards,
Hiroshi Inoue

view thread (8+ messages)  latest in thread

Message-ID: <569F699C.5090209@dream.email.ne.jp>
Permalink:  ../569F699C.5090209@dream.email.ne.jp/
Also on:    postgresql.org/message-id/569F699C.5090209@dream.email.ne.jp

 · 

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: h-inoue@dream.email.ne.jp, jkew@tableau.com
  Subject: Re: 9.0.5 issue - duplicate rows returned when using SQL_ATTR_ROW_ARRAY_SIZE attribute
  In-Reply-To: <569F699C.5090209@dream.email.ne.jp>
  References: <CY1PR0301MB19784F9A1AC0529A01B832ACCCC00@CY1PR0301MB1978.namprd03.prod.outlook.com> <CY1PR0301MB197858D2B4F0B69045F09FB5CCC10@CY1PR0301MB1978.namprd03.prod.outlook.com> <569F699C.5090209@dream.email.ne.jp>

* 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