Select count with offset returns nothing.

Поиск
Список
Период
Сортировка
От Tim Uckun
Тема Select count with offset returns nothing.
Дата
Msg-id CAGuHJrNz+AfJTjEv1fkd2k3uod0XBK9GspnTMJKtDRe125Afxw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Select count with offset returns nothing.  (Misa Simic <misa.simic@gmail.com>)
Re: Select count with offset returns nothing.  (Michael Black <michaelblack75052@hotmail.com>)
Re: Select count with offset returns nothing.  (Jerry Sievers <gsievers19@comcast.net>)
Re: Select count with offset returns nothing.  (Scott Marlowe <scott.marlowe@gmail.com>)
Re: Select count with offset returns nothing.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
I am using a library which is emitting SQL like this  SELECT COUNT(*)
FROM batches LIMIT 15 OFFSET 15 the library fails because on postgres
this query returns nothing (not even zero as a result). Presumably it
returns some valid value on mysql and other databases.

Other than hacking the library is there anything I can do?

Oddly enough SELECT count(*) FROM batches LIMIT 15 returns the full
count of the table. Presumably the count has to be done on a subquery
right?

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

Предыдущее
От: Condor
Дата:
Сообщение: Postgresql problem with update double precision
Следующее
От: Misa Simic
Дата:
Сообщение: Re: Select count with offset returns nothing.