X-Original-To: pgsql-odbc@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id ADA8347592C for ; Sun, 2 Feb 2003 19:38:11 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id F0B5A475925 for ; Sun, 2 Feb 2003 19:38:10 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id h130bw5u018806; Sun, 2 Feb 2003 19:37:59 -0500 (EST) To: Alain Picard Cc: pgsql-odbc@postgresql.org Subject: Re: ODBC breaks COUNTS, SEQUENCES as of Postgresql 7.3 In-reply-to: <15933.45721.965448.55685@outback.memetrics.local> References: <15933.45721.965448.55685@outback.memetrics.local> Comments: In-reply-to Alain Picard message dated "Mon, 03 Feb 2003 11:06:49 +1100" Date: Sun, 02 Feb 2003 19:37:58 -0500 Message-ID: <18805.1044232678@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/3 X-Sequence-Number: 2621 Alain Picard writes: > b) how to get 7.3 to return numbers via ODBC I dunno anything about fixing ODBC, but the standard advice for avoiding client-side problems with int8 is to cast the result of count(*) back to int4: select count(*)::integer from ... regards, tom lane