Re: 'select count...' returns SQL_VARCHAR?

Поиск
Список
Период
Сортировка
От Hiroshi Inoue
Тема Re: 'select count...' returns SQL_VARCHAR?
Дата
Msg-id EKEJJICOHDIEMGPNIFIJIEELIGAA.Inoue@tpf.co.jp
обсуждение исходный текст
Ответ на Re: 'select count...' returns SQL_VARCHAR?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: MS Access ODBC for Linux?
Следующее
От: Preston Lord
Дата:
Сообщение: postgres & iODBC