X-Original-To: pgsql-odbc@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 5BCC0475843 for ; Sun, 2 Feb 2003 19:07:01 -0500 (EST) Received: from HARRIS.memetrics.local (unknown [61.8.29.11]) by postgresql.org (Postfix) with ESMTP id 048294753A1 for ; Sun, 2 Feb 2003 19:07:00 -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 D27DGMF4; Mon, 3 Feb 2003 11:12:05 +1100 Received: (from ap@localhost) by outback.memetrics.local (8.11.6/8.8.7) id h1306o007585; Mon, 3 Feb 2003 11:06:50 +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: <15933.45721.965448.55685@outback.memetrics.local> Date: Mon, 3 Feb 2003 11:06:49 +1100 (EST) To: pgsql-odbc@postgresql.org Cc: alain.picard@memetrics.com Subject: ODBC breaks COUNTS, SEQUENCES as of Postgresql 7.3 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/2 X-Sequence-Number: 2620 Dear ODBC users, I have an application, written in lisp, which uses the unixODBC driver manager (though I've tested what follows with iODBC, with the same results). I have no real control over how the ODBC library is being used in this application; it comes from a 3rd party vendor. I'm trying to reverse engineer what they do via customer support and inspecting the ODBC trace log files. On the the problem. With versions of Postgresql <= 7.2, I would obtain the following results, (select [count [*]] :from [foo]) => ((73)) ("count") As of 7.3, I am now obtaining (select [count [*]] :from [foo]) => (("73")) ("count") Note the 73 is now "73". My understanding is that this is because as of 7.3, postgresql now reports counts, sequences, etc as INTEGER8, whereas they were previously INTEGER4. I tried to switch to using the "official" postgresql ODBC driver, psqlodbc, and compiled it from the sources in CVS. My thinking is that they would track the changes in Postgresql more closely than the unixODBC group. Setting up a DSN to use this driver, I can no longer connect to the back end: XOS 23 > (connect "test_new_postgres/kooks") Error: Sql-Database-Data-Error id HY092[28] : [unixODBC]ColAttribute for this type not implemented yet 1 (abort) Return to level 0. 2 Return to top loop level 0. Type :b for backtrace, :c