From: Georgi Kolev <geo_kolev@mail.ru>
To: pgsql-odbc@postgresql.org
Subject: Bug: BIGINT problem
Date: Sun, 15 Feb 2004 16:39:07 +0200
Message-ID: <200402151639.07537.geo_kolev@mail.ru> (raw)
Hi,
I have a problem when I try to compile the driver with unixODBC with BIGINT
support. Standard compilation version gives ver 2.50. On BIGINT table column
it returns result type as varchar().
To change to ver 3.51 I add on the top of config.h (after
making ./configure !!):
#define ODBCVER 0x0351
#define WIN32_FOO 1
On line 1136 change WIN32 to WIN32_FOO:
..............
#if (ODBCVER >= 0x0300) && defined(ODBCINT64)
#ifdef WIN32_FOO
case SQL_C_SBIGINT:
.................
It works, but I would be grateful if someone could propose better solution
because I realize that this is a hack and not quite good.
Best Regards,
Georgi Kolev
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: geo_kolev@mail.ru
Subject: Re: Bug: BIGINT problem
In-Reply-To: <200402151639.07537.geo_kolev@mail.ru>
References: <200402151639.07537.geo_kolev@mail.ru>
* 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