Select count with offset returns nothing. - Mailing list 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 by date:

Previous
From: Condor
Date:
Subject: Postgresql problem with update double precision
Next
From: Misa Simic
Date:
Subject: Re: Select count with offset returns nothing.