1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-03 15:22:11 +03:00

docs: update PL/pgSQL docs about the use of := and =

This commit is contained in:
Bruce Momjian
2014-01-16 16:40:17 -05:00
parent a472ae1e4e
commit 7e1955b861
2 changed files with 17 additions and 7 deletions

View File

@@ -796,7 +796,12 @@ decl_defkey : assign_operator
| K_DEFAULT
;
assign_operator : '=' /* not documented because it might be removed someday */
/*
* Ada-based PL/SQL uses := for assignment and variable defaults, while
* the SQL standard uses equals for these cases and for GET
* DIAGNOSTICS, so we support both. FOR and OPEN only support :=.
*/
assign_operator : '='
| COLON_EQUALS
;