Disable LIMIT #,# syntax, as agreed to months ago. Print message saying
to use separate LIMIT/OFFSET clauses.
This commit is contained in:
parent
890a012d0a
commit
d622cf867b
@ -11,7 +11,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.276 2001/12/09 04:39:39 thomas Exp $
|
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.277 2002/02/18 06:49:20 momjian Exp $
|
||||||
*
|
*
|
||||||
* HISTORY
|
* HISTORY
|
||||||
* AUTHOR DATE MAJOR EVENT
|
* AUTHOR DATE MAJOR EVENT
|
||||||
@ -3670,10 +3670,8 @@ select_limit: LIMIT select_limit_value OFFSET select_offset_value
|
|||||||
| OFFSET select_offset_value
|
| OFFSET select_offset_value
|
||||||
{ $$ = makeList2($2, NULL); }
|
{ $$ = makeList2($2, NULL); }
|
||||||
| LIMIT select_limit_value ',' select_offset_value
|
| LIMIT select_limit_value ',' select_offset_value
|
||||||
{ $$ = makeList2($4, $2); }
|
/* Disabled because it was too confusing, bjm 2002-02-18 */
|
||||||
/* enable this in 7.3, bjm 2001-10-22
|
{ elog(ERROR, "LIMIT #,# syntax not supported.\n\tUse separate LIMIT and OFFSET clauses."); }
|
||||||
{ elog(ERROR, "LIMIT #,# syntax no longer supported.\n\tUse separate LIMIT and OFFSET clauses."); }
|
|
||||||
*/
|
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user