The following bug has been logged on the website:
Bug reference: 6315
Logged by: Bernhard Reutner-Fischer
Email address: rep(dot)dot(dot)nop(at)gmail(dot)com
PostgreSQL version: 9.1.1
Operating system: linux
Description:
Binding for "OFFSET :offset" works fine but binding for a "FETCH NEXT :next
ROWS ONLY" raises:
syntax error at or near "$2"
SELECT * FROM foo OFFSET $1 ROWS FETCH NEXT $2 ROWS ONLY