Re: 64 bit integers - Mailing list pgsql-odbc

From Hiroshi Inoue
Subject Re: 64 bit integers
Date
Msg-id 3ADE4A7F.D9A72C78@tpf.co.jp
Whole thread Raw
In response to RE: 64 bit integers  (Christian Bucanac <christian.bucanac@mindark.com>)
List pgsql-odbc
Christian Bucanac wrote:
>
> Hi!
>
> I posted earlier a question about int8 and ODBC, see below. I got the answer
> that int8 works with ODBC driver version 07.01.0001 and later. The problem
> is that I can not make it work. I use postgres version 6.4 with ODBC driver
> version 07.01.00.04. Everyting works fine, but not with int8. When I try to
> bind an int8 with:
>
> SQLHSTMT lStatementHandle;
> SQLINTEGER lMetadata;
> SQLBIGINT lInt64;
> SQLBindCol(lStatementHandle, 1, SQL_C_SBIGINT, &lInt64, sizeof(lInt64),
> &lMetadata);
>
> SQLBindCol returns SQL_ERROR and when I run SQLGetDiagRec on the statement
> handle I get the following information:
> SQLState: S1003 (meaning Invalid application buffer type)

It seems that version 3.0 or later is required to handle
SQL_C_SBIGINT. Unfortunately psqlodbc's driver version is
2.5.

regards,
Hiroshi Inoue

pgsql-odbc by date:

Previous
From: "Braxton Beyer"
Date:
Subject: DB grid
Next
From: "Keith Todd"
Date:
Subject: include files