public inbox for [email protected]
help / color / mirror / Atom feedDocumentation bug report for LIMIT
2+ messages / 2 participants
[nested] [flat]
* Documentation bug report for LIMIT
@ 2002-11-06 04:39 Jean-Christian Imbeault <[email protected]>
2002-11-07 15:55 ` Re: Documentation bug report for LIMIT Bruce Momjian <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: Jean-Christian Imbeault @ 2002-11-06 04:39 UTC (permalink / raw)
To: pgsql-docs
In
http://www6.jp.postgresql.org/users-lounge/docs/7.2/postgres/queries-limit.html
it is stated that the syntax is:
SELECT select_list
FROM table_expression
[LIMIT { number | ALL }] [OFFSET number]
This following query is valid even though the syntax is wrong:
select id from members order by id limit 5, 6
If this "alternative" syntax is acceptable could you add this
alternative syntax to the docs? Else, the parser needs to throw an error?
SELECT select_list
FROM table_expression
[LIMIT { number | ALL }] [, [OFFSET] number]
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Documentation bug report for LIMIT
2002-11-06 04:39 Documentation bug report for LIMIT Jean-Christian Imbeault <[email protected]>
@ 2002-11-07 15:55 ` Bruce Momjian <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Bruce Momjian @ 2002-11-07 15:55 UTC (permalink / raw)
To: [email protected]; +Cc: pgsql-docs
Interesting you picked that up. The comma for LIMIT was supported in
7.2.X only for backward compatibility, and was mentioned in the release
notes. It is _not_ supported in 7.3 anymore, where the separate
LIMIT/OFFSET clauses are the only supported syntax.
---------------------------------------------------------------------------
Jean-Christian Imbeault wrote:
> In
> http://www6.jp.postgresql.org/users-lounge/docs/7.2/postgres/queries-limit.html
>
> it is stated that the syntax is:
>
> SELECT select_list
> FROM table_expression
> [LIMIT { number | ALL }] [OFFSET number]
>
> This following query is valid even though the syntax is wrong:
>
> select id from members order by id limit 5, 6
>
> If this "alternative" syntax is acceptable could you add this
> alternative syntax to the docs? Else, the parser needs to throw an error?
>
> SELECT select_list
> FROM table_expression
> [LIMIT { number | ALL }] [, [OFFSET] number]
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>
--
Bruce Momjian | http://candle.pha.pa.us
[email protected] | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2002-11-07 15:55 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-11-06 04:39 Documentation bug report for LIMIT Jean-Christian Imbeault <[email protected]>
2002-11-07 15:55 ` Bruce Momjian <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox