pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus Bertheau ☭ <twanger@bluetwanger.de>
To: pgsql-sql@postgresql.org
Subject: SELECT * FROM foo OFFSET -1 LIMIT 1
Date: Mon, 27 Jun 2005 17:34:09 +0200
Message-ID: <1119886449.29687.3.camel@dicaprio.akademie1.de> (raw)

Hi,

is there a reason that

SELECT * FROM t1 OFFSET -1 LIMIT 1

does not return 0 rows? Accordingly

SELECT * FROM t1 OFFSET -1 LIMIT 2

should return 1 row, imo.

Markus

-- 
Markus Bertheau ☭ <twanger@bluetwanger.de>




view thread (4+ messages)  latest in thread

Message-ID: <1119886449.29687.3.camel@dicaprio.akademie1.de>
Permalink:  ../1119886449.29687.3.camel@dicaprio.akademie1.de/
Also on:    postgresql.org/message-id/1119886449.29687.3.camel@dicaprio.akademie1.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: twanger@bluetwanger.de
  Subject: Re: SELECT * FROM foo OFFSET -1 LIMIT 1
  In-Reply-To: <1119886449.29687.3.camel@dicaprio.akademie1.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox