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

Commite1ce520

Browse files
committed
Back out LIMIT #,# removal and mark it as to-be-removed in 7.3.
1 parent087771a commite1ce520

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

‎HISTORY

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ several languages.
3737
Migration to 7.2
3838

3939
A dump/restore using pg_dump is required for those wishing to migrate
40-
data from any previous release.One significant change is that
41-
the SELECT ... LIMIT 10,20 syntax is no longer supported. You must
42-
now use LIMIT 10OFFSET 20 to accomplish the same thing.
40+
data from any previous release.The SELECT ... LIMIT 10,20 syntax will
41+
be removed in 7.3. You should change your queries to use LIMIT 10
42+
OFFSET 20.
4343

4444

4545

‎src/backend/parser/gram.y

Lines changed: 5 additions & 1 deletion
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.267 2001/10/20 16:51:02 momjian Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.268 2001/10/23 02:45:37 momjian Exp $
1515
*
1616
* HISTORY
1717
* AUTHORDATEMAJOR EVENT
@@ -3656,7 +3656,11 @@ select_limit:LIMIT select_limit_value OFFSET select_offset_value
36563656
|OFFSETselect_offset_value
36573657
{$$ = makeList2($2,NULL); }
36583658
|LIMITselect_offset_value','select_limit_value
3659+
{$$ = makeList2($4,$2); }
3660+
#ifdefNOT_USED
3661+
/* enable this in 7.3, bjm 2001-10-22*/
36593662
{ elog(ERROR,"LIMIT #,# syntax no longer supported.\n\tUse separate LIMIT and OFFSET clauses."); }
3663+
#endif
36603664
;
36613665

36623666

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp