Index: gram.y =================================================================== RCS file: /cvsroot/pgsql-server/src/backend/parser/gram.y,v retrieving revision 2.360 diff -c -r2.360 gram.y *** gram.y 19 Aug 2002 15:08:47 -0000 2.360 --- gram.y 26 Aug 2002 00:29:24 -0000 *************** *** 4114,4123 **** --- 4114,4135 ---- nth(0, $4), nth(1, $4)); $$ = $1; } + | select_clause sort_clause opt_select_limit opt_for_update_clause + { + insertSelectOptions((SelectStmt *) $1, $2, $4, + nth(0, $3), nth(1, $3)); + $$ = $1; + } | select_clause for_update_clause opt_select_limit { insertSelectOptions((SelectStmt *) $1, NIL, $2, nth(0, $3), nth(1, $3)); + $$ = $1; + } + | select_clause opt_select_limit for_update_clause + { + insertSelectOptions((SelectStmt *) $1, NIL, $3, + nth(0, $2), nth(1, $2)); $$ = $1; } | select_clause select_limit