Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fHWPU-0004Yl-Ts for pgsql-odbc@arkaria.postgresql.org; Sat, 12 May 2018 15:26:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fHWPT-00058F-Ed for pgsql-odbc@arkaria.postgresql.org; Sat, 12 May 2018 15:26: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.89) (envelope-from ) id 1fHWPT-000586-5o for pgsql-odbc@lists.postgresql.org; Sat, 12 May 2018 15:26:11 +0000 Received: from webclient5.webclient5.de ([136.243.32.184]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fHWPP-0000CN-81 for pgsql-odbc@lists.postgresql.org; Sat, 12 May 2018 15:26:09 +0000 Received: from olorin.ladisch.de (x2f7faf4.dyn.telefonica.de [2.247.250.244]) by webclient5.webclient5.de (Postfix) with ESMTPSA id 43D075582A35 for ; Sat, 12 May 2018 17:26:03 +0200 (CEST) Subject: Re: Bug report: x64 Row status Array uses wrong data type To: pgsql-odbc@lists.postgresql.org References: <08FA934FA252D048A8B6D2018D96549A262C8FE7@CAEX2010.digital-dispatch.com> <97ae1e0f-fd75-33ea-b639-3ad92cff1daf@dream.email.ne.jp> From: Clemens Ladisch Message-ID: Date: Sat, 12 May 2018 17:25:10 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <97ae1e0f-fd75-33ea-b639-3ad92cff1daf@dream.email.ne.jp> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.99.4 at webclient5 X-Virus-Status: Clean List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Jari Siikarla wrote: > The array returned from fetch for row statuses uses 16 bit values > instead of 64 bit values. https://docs.microsoft.com/en-us/sql/odbc/reference/syntax/sqlsetstmtattr-function says: | SQL_ATTR_ROW_STATUS_PTR | An SQLUSMALLINT * value that points to an array of SQLUSMALLINT | values containing row status values after a call to SQLFetch or | SQLFetchScroll. > Client is set ODBC version 2 SQL_ATTR_ROW_STATUS_PTR was introduced in ODBC 3.0. Regards, Clemens