X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 415D4D1DD7B for ; Sun, 15 Feb 2004 14:41:06 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 02242-05 for ; Sun, 15 Feb 2004 10:41:12 -0400 (AST) Received: from astrojacks.mnet.bg (cable-81-161-211-250.mnet.bg [81.161.211.250]) by svr1.postgresql.org (Postfix) with ESMTP id 15520D1DAA6 for ; Sun, 15 Feb 2004 10:41:00 -0400 (AST) Received: from astrojacks.mnet.bg (astrojacks.mnet.bg [81.161.211.250]) by astrojacks.mnet.bg (8.12.11/8.12.11/Debian-1) with ESMTP id i1FEd78J011343 for ; Sun, 15 Feb 2004 16:39:08 +0200 From: Georgi Kolev To: pgsql-odbc@postgresql.org Subject: Bug: BIGINT problem Date: Sun, 15 Feb 2004 16:39:07 +0200 User-Agent: KMail/1.5.4 MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200402151639.07537.geo_kolev@mail.ru> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/34 X-Sequence-Number: 3787 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