pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Stark <gsstark@mit.edu>
To: Markus Bertheau <twanger@bluetwanger.de>
Cc: Martín Marqués <martin@bugs.unl.edu.ar>
Cc: pgsql-sql@postgresql.org
Subject: Re: SELECT * FROM foo OFFSET -1 LIMIT 1
Date: 27 Jun 2005 15:35:59 -0400
Message-ID: <87ekan1tk0.fsf@stark.xeocode.com> (raw)
In-Reply-To: <1119897697.7464.7.camel@localhost.localdomain>
References: <1119886449.29687.3.camel@dicaprio.akademie1.de>
	<200506271417.28851.martin@bugs.unl.edu.ar>
	<1119897697.7464.7.camel@localhost.localdomain>


Markus Bertheau <twanger@bluetwanger.de> writes:

> Offset for negative numbers means 0, as it seems. I think there is a
> sensible meaning for negative offset numbers and wondered, what
> arguments led to negative offsets being processed as 0 offset.

Frankly I'm surprised it's not a syntax error.

-- 
greg




view thread (4+ messages)

Message-ID: <87ekan1tk0.fsf@stark.xeocode.com>
Permalink:  ../87ekan1tk0.fsf@stark.xeocode.com/
Also on:    postgresql.org/message-id/87ekan1tk0.fsf@stark.xeocode.com

 · 

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: gsstark@mit.edu, twanger@bluetwanger.de, martin@bugs.unl.edu.ar
  Subject: Re: SELECT * FROM foo OFFSET -1 LIMIT 1
  In-Reply-To: <87ekan1tk0.fsf@stark.xeocode.com>

* 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