Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 25CE318FE98F for ; Thu, 1 Dec 2011 16:41:32 -0400 (AST) Received: from mail.cybertec.at ([87.118.110.48]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RWDRj-0003qt-1Q for pgsql-bugs@postgresql.org; Thu, 01 Dec 2011 20:41:32 +0000 Received: from localhost.localdomain (host-87-242-63-140.prtelecom.hu [87.242.63.140]) by mail.cybertec.at (Postfix) with ESMTPSA id 6DC9B5FC27D for ; Thu, 1 Dec 2011 21:40:46 +0100 (CET) Message-ID: <4ED7E66D.9090701@cybertec.at> Date: Thu, 01 Dec 2011 21:41:17 +0100 From: Boszormenyi Zoltan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Re: BUG #6315: FETCH NEXT :next ROWS ONLY fails References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -3.1 (---) X-Archive-Number: 201112/14 X-Sequence-Number: 31825 2011-12-01 20:09 keltez=C3=A9ssel, rep.dot.nop@gmail.com =C3=ADrta: > 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: =20 > > Binding for "OFFSET :offset" works fine but binding for a &qu= ot;FETCH NEXT :next > ROWS ONLY" raises: > syntax error at or near "$2" > SELECT * FROM foo OFFSET $1 ROWS FETCH NEXT $2 ROWS ONLY This is not a supported syntax. Consider using SELECT * FROM foo OFFSET $1 LIMIT $2 instead. --=20 ---------------------------------- Zolt=C3=A1n B=C3=B6sz=C3=B6rm=C3=A9nyi Cybertec Sch=C3=B6nig & Sch=C3=B6nig GmbH Gr=C3=B6hrm=C3=BChlgasse 26 A-2700 Wiener Neustadt, Austria Web: http://www.postgresql-support.de http://www.postgresql.at/