diff options
| author | Bruce Momjian | 2014-01-16 21:40:17 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2014-01-16 21:40:58 +0000 |
| commit | 7e1955b861a1be9ef2dfd6acdd50d0c6b5a75794 (patch) | |
| tree | 75ca4cfe855aaa13755fbdc0e9de2c946dddeae6 /src/pl | |
| parent | a472ae1e4e2bf5fb71ac655d38d1e35df4c1c966 (diff) | |
docs: update PL/pgSQL docs about the use of := and =
Diffstat (limited to 'src/pl')
| -rw-r--r-- | src/pl/plpgsql/src/pl_gram.y | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/pl/plpgsql/src/pl_gram.y b/src/pl/plpgsql/src/pl_gram.y index 3fd6655e1be..c0cb58530be 100644 --- a/src/pl/plpgsql/src/pl_gram.y +++ b/src/pl/plpgsql/src/pl_gram.y @@ -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 ; |
