X-Original-To: pgsql-odbc@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 2A28D475A1E for ; Mon, 3 Feb 2003 22:07:09 -0500 (EST) Received: from HARRIS.memetrics.local (unknown [61.8.29.11]) by postgresql.org (Postfix) with ESMTP id C9FA44759BD for ; Mon, 3 Feb 2003 22:07:07 -0500 (EST) Received: from outback.memetrics.local ([192.168.10.203]) by HARRIS.memetrics.local with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2656.59) id D27DGM4R; Tue, 4 Feb 2003 14:12:13 +1100 Received: (from ap@localhost) by outback.memetrics.local (8.11.6/8.8.7) id h1436mp31817; Tue, 4 Feb 2003 14:06:48 +1100 X-Authentication-Warning: outback.memetrics.local: ap set sender to Alain.Picard@memetrics.com using -f From: Alain Picard MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15935.11848.278897.343335@outback.memetrics.local> Date: Tue, 4 Feb 2003 14:06:48 +1100 (EST) To: Nick Gorham , Peter Harvey , pgsql-odbc@postgresql.org Cc: alain.picard@memetrics.com, claudio.natoli@memetrics.com Subject: unixODBC, PostgreSQL 7.3 + ODBC V3 drivers? X-Mailer: VM 6.75 under Emacs 20.7.1 X-Attribution: ap Comment: No comment. X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/10 X-Sequence-Number: 2628 Dear unixODBC and psqlodbc maintainers, I'm trying to use unixODBC with the latest (CVS) psqlodbc library with PostgreSQL 7.3. This is all working fine, but, as of 7.3 PostgreSQL returns aggregate types (e.g. SUMs, COUNTs) as INTEGER8, and so these results are (correctly) mapped to string types by the ODBC V2 driver. On Windows NT, using the experimental psqlodbc V3 driver, things work properly and I get numbers back. On Linux, however, compiling the experimental psqlodbc V3 driver results in problems. (I did this by defining ODBCVER to be 0x0351 in config.h) When I try to connect to the DB, I get the following error: > Error: Sql-Database-Data-Error id HY092[28] : [unixODBC]ColAttribute for this type not implemented yet The relevant place in the SQL log file indicates: > [ODBC][31769][SQLColAttributes.c][230] > Entry: > Statement = 0x80723c8 > Column Number = 1 > Field Identifier = 0 > Character Attr = 0x807dc98 > Buffer Length = 4 > String Length = 0x805cd96 > Numeric Attribute = 0x805cd90 > [ODBC][31769][SQLColAttributes.c][557] > Exit:[SQL_ERROR] > DIAG [HY092] [unixODBC]ColAttribute for this type not implemented yet I have verified that the same call (SQLColAttributes) is made, with the same arguments (Column Number = 1, Field Identifier = 0), and returns the correct values (0,19) on NT. This is with unixODBC v 2.2.4 (same behaviour with all previous versions). I don't rightly know if this is a problem with unixODBC or with psqlodbc. Since they are (presumably) the same psqlodbc sources on NT and linux, module some #defines, and the same client application making identical calls, it seems to me to me more probable that it's a unixODBC problem, but I'm sending this message to both interested parties anyhow. Perhaps someone can help me shed some light on this issue? Does anyone have a working ODBC V3 driver on unix for PostgreSQL at the moment? Thanks, -- Alain Picard Memetrics