Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id EDFAD914537 for ; Thu, 1 Dec 2011 15:09:21 -0400 (AST) Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RWC0S-0001wX-K8 for pgsql-bugs@postgresql.org; Thu, 01 Dec 2011 19:09:21 +0000 Received: from [204.145.120.229] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RWC0F-0008QM-Nz for pgsql-bugs@postgresql.org; Thu, 01 Dec 2011 19:09:03 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1RWC0F-0000xy-Bh for pgsql-bugs@postgresql.org; Thu, 01 Dec 2011 19:09:03 +0000 Date: Thu, 01 Dec 2011 19:09:03 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6315: FETCH NEXT :next ROWS ONLY fails To: pgsql-bugs@postgresql.org From: rep.dot.nop@gmail.com X-Pg-Spam-Score: -2.2 (--) X-Archive-Number: 201112/12 X-Sequence-Number: 31823 The following bug has been logged on the website: Bug reference: 6315 Logged by: Bernhard Reutner-Fischer Email address: rep.dot.nop@gmail.com PostgreSQL version: 9.1.1 Operating system: linux Description: = Binding for "OFFSET :offset" works fine but binding for a "F= ETCH NEXT :next ROWS ONLY" raises: syntax error at or near "$2" SELECT * FROM foo OFFSET $1 ROWS FETCH NEXT $2 ROWS ONLY