pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: pgsql-odbc@lists.postgresql.org
Subject: Re: Bug report: x64 Row status Array uses wrong data type
Date: Mon, 14 May 2018 17:09:02 +0200
Message-ID: <f704455b-efcd-8e87-5a82-8709dfcd42c1@ladisch.de> (raw)
In-Reply-To: <08FA934FA252D048A8B6D2018D96549A262C9169@CAEX2010.digital-dispatch.com>
References: <08FA934FA252D048A8B6D2018D96549A262C8FE7@CAEX2010.digital-dispatch.com>
	<97ae1e0f-fd75-33ea-b639-3ad92cff1daf@dream.email.ne.jp>
	<08FA934FA252D048A8B6D2018D96549A262C9169@CAEX2010.digital-dispatch.com>

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




view thread (7+ messages)  latest in thread

Message-ID: <f704455b-efcd-8e87-5a82-8709dfcd42c1@ladisch.de>
Permalink:  ../f704455b-efcd-8e87-5a82-8709dfcd42c1@ladisch.de/
Also on:    postgresql.org/message-id/f704455b-efcd-8e87-5a82-8709dfcd42c1@ladisch.de

 · 

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: clemens@ladisch.de
  Subject: Re: Bug report: x64 Row status Array uses wrong data type
  In-Reply-To: <f704455b-efcd-8e87-5a82-8709dfcd42c1@ladisch.de>
  References: <08FA934FA252D048A8B6D2018D96549A262C8FE7@CAEX2010.digital-dispatch.com> <97ae1e0f-fd75-33ea-b639-3ad92cff1daf@dream.email.ne.jp> <08FA934FA252D048A8B6D2018D96549A262C9169@CAEX2010.digital-dispatch.com> <f704455b-efcd-8e87-5a82-8709dfcd42c1@ladisch.de>

* 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