Re: BUG #5377: group by problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #5377: group by problem
Дата
Msg-id 10610.1268923463@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #5377: group by problem  ("michel rosa" <mrosa@geomatic.ch>)
Список pgsql-bugs
"michel rosa" <mrosa@geomatic.ch> writes:
> ...
> and upload_date<='2010-03-02'
> give as result
>  2010-03-02 |    0 |   837
>  2010-03-02 |  0.5 |   136
>  2010-03-02 |  1.5 |   138

> but when upload_date<='2010-03-03', I get extras rows for 2010-03-02

Is the upload_date column actually a date?  I think maybe it's a
timestamp and the "extra" rows correspond to times after midnight.
Your cutoff conditions are being interpreted as
    upload_date<='2010-03-02 00:00:00'
etc.

            regards, tom lane

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: text cast to bool bug
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #5378: Little inaccuracy in the manual