pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stelios Sfakianakis <ssfak@ics.forth.gr>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-odbc@postgresql.org
Subject: Re: 'select count...' returns SQL_VARCHAR?
Date: Fri, 12 Jul 2002 18:13:06 +0300
Message-ID: <3D2EF202.5040500@ics.forth.gr> (raw)
References: <3D2EC5F0.9060504@ics.forth.gr>
	<9756.1026486038@sss.pgh.pa.us>

Tom Lane wrote:
> Stelios Sfakianakis <ssfak@ics.forth.gr> writes:
> 
>>I am using the PostgreSQL and its ODBC driver but there seems to be
>>some problem with the "select count(...)..." queries. Here is my
>>configuration:
>>  - FreeBSD 4.6
>>  - PostgreSQL 7.2.1
> 
> 
> count() returns bigint (int8) in 7.2.  I seem to recall that ODBC has
> some problem classifying bigint as numeric.  I don't recall if that's
> a simple bug or a standards compatibility issue.  Anyway, the easiest
> workaround may be to cast the result of count to integer (int4) so that
> ODBC knows what to do with it.
> 
> 			regards, tom lane

It works as expected, of course!
Thank you very much!

Best regards
Stelios Sfakianakis

> 
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly



-- 
"Right now, CORBA *is* the future of middleware. I'm not aware of any
other middleware that would come even close in portability, platform
support, features, performance, or multi-vendor support. It will be a
minimum of six or seven years before any other middleware platform
will be able to match that."
       --- Michi Henning in news:comp.object.corba, 28/06/2002





view thread (4+ messages)  latest in thread

Message-ID: <3D2EF202.5040500@ics.forth.gr>
Permalink:  ../3D2EF202.5040500@ics.forth.gr/
Also on:    postgresql.org/message-id/3D2EF202.5040500@ics.forth.gr

 · 

reply

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: ssfak@ics.forth.gr, tgl@sss.pgh.pa.us
  Subject: Re: 'select count...' returns SQL_VARCHAR?
  In-Reply-To: <3D2EF202.5040500@ics.forth.gr>
  References: <3D2EC5F0.9060504@ics.forth.gr> <9756.1026486038@sss.pgh.pa.us> <3D2EF202.5040500@ics.forth.gr>

* 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