git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0cee65b)
Allow IS and FOR in Pl/PgSQL cursors, per Oracle and ANSI. Jan-approved.
2001年5月31日 17:15:40 +0000 (17:15 +0000)
2001年5月31日 17:15:40 +0000 (17:15 +0000)

diff --git a/src/pl/plpgsql/src/gram.y b/src/pl/plpgsql/src/gram.y
index 9dee73acc97823464d71b0391bb7c5554aff8d67..0bec5a8f2cf977347a691ef18ad66b418b8d4a25 100644 (file)
--- a/src/pl/plpgsql/src/gram.y
+++ b/src/pl/plpgsql/src/gram.y
@@ -4,7 +4,7 @@
* procedural language
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/gram.y,v 1.19 2001年05月21日 14:22:18 wieck Exp $
+ * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/gram.y,v 1.20 2001年05月31日 17:15:40 momjian Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
@@ -355,7 +355,7 @@ decl_statement : decl_varname decl_const decl_datatype decl_notnull decl_defval
{
plpgsql_ns_rename(2,ドル 4ドル);
}
- | decl_varname K_CURSOR decl_cursor_args K_IS K_SELECT decl_cursor_query
+ | decl_varname K_CURSOR decl_cursor_args decl_is_from K_SELECT decl_cursor_query
{
PLpgSQL_var *new;
PLpgSQL_expr *curname_def;
@@ -499,7 +499,9 @@ decl_cursor_openparen : '('
plpgsql_ns_push(NULL);
}
;
-
+
+decl_is_from : K_IS | /* Oracle */
+ K_FOR; /* ANSI */
decl_aliasitem : T_WORD
{
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /