Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd622cf8

Browse files
committed
Disable LIMIT #,# syntax, as agreed to months ago. Print message saying
to use separate LIMIT/OFFSET clauses.
1 parent890a012 commitd622cf8

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
* AUTHORDATEMAJOR EVENT
@@ -3669,11 +3669,9 @@ select_limit:LIMIT select_limit_value OFFSET select_offset_value
36693669
{$$ = makeList2(NULL,$2); }
36703670
|OFFSETselect_offset_value
36713671
{$$ = makeList2($2,NULL); }
3672-
|LIMITselect_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+
|LIMITselect_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)

[8]ページ先頭

©2009-2025 Movatter.jp