Received: from turbo.nsk.su (root@turbo.nsk.su [212.20.30.124]) by hub.org (8.10.1/8.10.1) with ESMTP id e6LAlAh53877 for ; Fri, 21 Jul 2000 06:47:11 -0400 (EDT) Received: from DENIS ([212.20.30.169]) by turbo.nsk.su (8.8.8/T.1) with ESMTP id RAA09645 for ; Fri, 21 Jul 2000 17:47:08 +0700 (NOVST) X-Authentication-Warning: turbo.nsk.su: Host [212.20.30.169] claimed to be DENIS Date: Fri, 21 Jul 2000 17:48:38 +0600 From: =?koi8-r?B?5MXOydMg79PBxN7Jyg==?= X-Mailer: The Bat! (v1.36) S/N F29DEE5D / Educational Reply-To: =?koi8-r?B?5MXOydMg79PBxN7Jyg==?= Organization: =?koi8-r?B?IvLJzsXUIg==?= X-Priority: 3 (Normal) Message-ID: <5742.000721@turbo.nsk.su> To: pgsql-admin@postgresql.org Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit X-Archive-Number: 200007/83 Hello, I try to select rows with LIMIT statement: select NICO, NICO, InDate from FirmICO LIMIT 5 OFFSET 5; - It works correctly. But when i try aply this query to declare cursor, it returns me all rows: DECLARE scursor CURSOR FOR select NICO, NICO, InDate from FirmICO LIMIT 5 OFFSET 5; Why it happends? My be it important: i try declare cursor in C program, using LIBPQ programming interface.