Re: SELECT * FROM foo OFFSET -1 LIMIT 1 - Mailing list pgsql-sql

From Greg Stark
Subject Re: SELECT * FROM foo OFFSET -1 LIMIT 1
Date
Msg-id 87ekan1tk0.fsf@stark.xeocode.com
Whole thread Raw
In response to Re: SELECT * FROM foo OFFSET -1 LIMIT 1  (Markus Bertheau <twanger@bluetwanger.de>)
List pgsql-sql
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



pgsql-sql by date:

Previous
From: Markus Bertheau
Date:
Subject: Re: SELECT * FROM foo OFFSET -1 LIMIT 1
Next
From: Michael Fuhr
Date:
Subject: Re: pg_attribute.attlen -1 for varchar e pbchar fields