Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


On Mon, Jan 30, 2012 at 04:55:51PM +0100, Stephan Bergmann wrote:
On 01/30/2012 03:43 PM, Lionel Elie Mamane wrote:

I attach here the "less invasive" variant originally meant for
libreoffice-3-5.

My SQL knowledge is actually zero.  For example, I have no idea
where to look to verify that for some SQL_ATTR_CURSOR_TYPE, say,
SQLGetStmtAttr expects to find a buffer of type SQLULEN to write
into.

There is a table at

http://msdn.microsoft.com/en-us/library/windows/desktop/ms712631(v=vs.85).aspx#ec7a5a5f-5f58-4cf8-b9b9-71b613d9c9b4_h

For most of the cases that interest us, the second column starts with
"An SQLULEN value that specifies (...)".

For example for SQL_ATTR_FETCH_BOOKMARK_PTR, it says "A SQLLEN * that
points to a binary bookmark value". In these cases (pointer to a
sequence of characters or sequence of bytes or ...), the size of the
memory area pointed to by the pointer is in the "StringLength"
argument, or some special values, e.g. to say "null-terminated string
of unspecified length" (SQL_NTS). The details of that are near the top
of that page.

See also
http://msdn.microsoft.com/en-us/library/windows/desktop/ms715438(v=vs.85).aspx
for SQLGetStmtAttr.

-- 
Lionel

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.