Skip to content

Commit d622cf8

Browse files
committed
Disable LIMIT #,# syntax, as agreed to months ago. Print message saying
to use separate LIMIT/OFFSET clauses.
1 parent 890a012 commit d622cf8

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/backend/parser/gram.y

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.276 2001/12/09 04:39:39 thomas Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.277 2002/02/18 06:49:20 momjian Exp $
1515
*
1616
* HISTORY
1717
* AUTHOR DATE MAJOR EVENT
@@ -3669,11 +3669,9 @@ select_limit: LIMIT select_limit_value OFFSET select_offset_value
36693669
{ $$ = makeList2(NULL, $2); }
36703670
| OFFSET select_offset_value
36713671
{ $$ = makeList2($2, NULL); }
3672-
| LIMIT select_limit_value ',' select_offset_value
3673-
{ $$ = makeList2($4, $2); }
3674-
/* enable this in 7.3, bjm 2001-10-22
3675-
{ elog(ERROR, "LIMIT #,# syntax no longer supported.\n\tUse separate LIMIT and OFFSET clauses."); }
3676-
*/
3672+
| LIMIT select_limit_value ',' select_offset_value
3673+
/* Disabled because it was too confusing, bjm 2002-02-18 */
3674+
{ elog(ERROR, "LIMIT #,# syntax not supported.\n\tUse separate LIMIT and OFFSET clauses."); }
36773675
;
36783676

36793677

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy