Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aMaVh-0003fA-F4 for pgsql-odbc@arkaria.postgresql.org; Fri, 22 Jan 2016 12:08:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aMaVf-0008CU-N2 for pgsql-odbc@arkaria.postgresql.org; Fri, 22 Jan 2016 12:08:11 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aMaVf-0008CD-1W for pgsql-odbc@postgresql.org; Fri, 22 Jan 2016 12:08:11 +0000 Received: from mail2.asahi-net.or.jp ([202.224.39.198]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aMaVV-00029Q-P0 for pgsql-odbc@postgresql.org; Fri, 22 Jan 2016 12:08:09 +0000 Received: from [192.168.1.3] (ab063014.dynamic.ppp.asahi-net.or.jp [183.76.63.14]) by mail2.asahi-net.or.jp (Postfix) with ESMTP id A95476256; Fri, 22 Jan 2016 21:07:55 +0900 (JST) Subject: Re: Re: 9.0.5 issue - duplicate rows returned when using SQL_ATTR_ROW_ARRAY_SIZE attribute To: John Kew References: <569F699C.5090209@dream.email.ne.jp> <569F7C94.6010203@dream.email.ne.jp> Cc: "pgsql-odbc@postgresql.org" From: "Inoue, Hiroshi" Message-ID: <56A21BA7.3050900@dream.email.ne.jp> Date: Fri, 22 Jan 2016 21:08:07 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <569F7C94.6010203@dream.email.ne.jp> Content-Type: multipart/alternative; boundary="------------060401090909060702040103" X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org This is a multi-part message in MIME format. --------------060401090909060702040103 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hi John, I can reproduce the case now and have a trial patch. Could you test it? regards, Hiroshi Inoue On 2016/01/20 21:24, Inoue, Hiroshi wrote: > Oops I'm sorry. > I was testing other drivers. > > regards, > Hiroshi Inoue > > On 2016/01/20 20:03, Inoue, Hiroshi wrote: >> 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 >> >> このメッセージにウイ ルス は検出されませんでした。 >> AVG によってチェックされました - www.avg.com >> バージョン: 2015.0.6176 / ウイルスデータベース:4522/11441 - リリー >> ス日:2016/01/19 >> > > このメッセージにウイルス は検出されませんでした。 > AVG によってチェックされました - www.avg.com > バージョン: 2015.0.6176 / ウイルスデータベース:4522/11442 - リリース > 日:2016/01/20 > --------------060401090909060702040103 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Hi John,

I can reproduce the case now and have a trial patch.
Could you test it?

regards,
Hiroshi Inoue

On 2016/01/20 21:24, Inoue, Hiroshi wrote:
Oops I'm sorry.
I was testing other drivers.

regards,
Hiroshi Inoue

On 2016/01/20 20:03, Inoue, Hiroshi wrote:
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

このメッセージにウイ ルス は検出されませんでした。
AVG によってチェックされました - www.avg.com
バージョン: 2015.0.6176 / ウイルスデータベース:4522/11441 - リリース日:2016/01/19


このメッセージにウイルス は検出されませんでした。
AVG によってチェックされました - www.avg.com
バージョン: 2015.0.6176 / ウイルスデータベース:4522/11442 - リリース日:2016/01/20


--------------060401090909060702040103--