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 1fIF5G-00052Q-1G for pgsql-odbc@arkaria.postgresql.org; Mon, 14 May 2018 15:08:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fIF5E-00089X-Ao for pgsql-odbc@arkaria.postgresql.org; Mon, 14 May 2018 15:08:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fIF5E-00089O-5A for pgsql-odbc@lists.postgresql.org; Mon, 14 May 2018 15:08:16 +0000 Received: from webclient5.webclient5.de ([136.243.32.184]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fIF5A-0005jo-R9 for pgsql-odbc@lists.postgresql.org; Mon, 14 May 2018 15:08:15 +0000 Received: from [10.1.2.4] (unknown [94.101.37.79]) by webclient5.webclient5.de (Postfix) with ESMTPSA id D67B155807EA for ; Mon, 14 May 2018 17:08:10 +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> <08FA934FA252D048A8B6D2018D96549A262C9169@CAEX2010.digital-dispatch.com> From: Clemens Ladisch Message-ID: Date: Mon, 14 May 2018 17:09:02 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <08FA934FA252D048A8B6D2018D96549A262C9169@CAEX2010.digital-dispatch.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit 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: > https://docs.microsoft.com/en-us/sql/odbc/reference/odbc-64-bit-information > “ > SQLSetStmtAttr > When the Attribute parameter has one of the following values, a 64-bit value is passed in *ValuePtr: > … > SQL_ATTR_ROW_STATUS_PTR > … > ” This is a typo on that web page, "*ValuePtr" should be "ValuePtr". (Most of these SQL_ATTR_xxx attribute values are not pointers, so it does not make sense to dereference ValuePtr.) Only the _pointer_ to the row status array is 64 bits. > https://support.oracle.com/knowledge/Oracle%20Database%20Products/1472987_1.html > “ > in 64-bit mode the status values are 64-bit Of the two possible interpretations of Microsoft's statement, Oracle chose the wrong one. Regards, Clemens