Re: 'select count...' returns SQL_VARCHAR? - Mailing list pgsql-odbc

From Hiroshi Inoue
Subject Re: 'select count...' returns SQL_VARCHAR?
Date
Msg-id EKEJJICOHDIEMGPNIFIJIEELIGAA.Inoue@tpf.co.jp
Whole thread Raw
In response to Re: 'select count...' returns SQL_VARCHAR?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-odbc
> -----Original Message-----
> From: Tom Lane
>
> 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.

It isn't a problem of the ODBC driver itself. The problem is if your
app (or the software you are using) can handle bigint properly.
Unfortunately there are some(many ?) softwares that can't
handle bigint properly and so the ODBC driver has returned
VARCHAR for int8 type. Recently I added the INT8 As (bigint,
numeric, double, ...) option to cope with this *sum(int4) returns
int8* problem.

regards,
Hiroshi Inoue

pgsql-odbc by date:

Previous
From: Joe Conway
Date:
Subject: Re: MS Access ODBC for Linux?
Next
From: Preston Lord
Date:
Subject: postgres & iODBC