diff options
| author | Tom Lane | 2008-02-15 22:17:06 +0000 |
|---|---|---|
| committer | Tom Lane | 2008-02-15 22:17:06 +0000 |
| commit | e67867b26cf052e166b39c6457ee04861cb81ead (patch) | |
| tree | dafa8a47410c9f23565fe3df13368d06640bb060 /src/test | |
| parent | cc80f0a340cdeba7716c5e128346481b82cc6949 (diff) | |
Allow AS to be omitted when specifying an output column name in SELECT
(or RETURNING), but only when the output name is not any SQL keyword.
This seems as close as we can get to the standard's syntax without a
great deal of thrashing. Original patch by Hiroshi Saito, amended by me.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/regress/expected/plpgsql.out | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/regress/expected/plpgsql.out b/src/test/regress/expected/plpgsql.out index 78466426f1..03204b66e6 100644 --- a/src/test/regress/expected/plpgsql.out +++ b/src/test/regress/expected/plpgsql.out @@ -2337,9 +2337,9 @@ begin end loop; return 5; end;$$ language plpgsql; -ERROR: syntax error at or near "fought" +ERROR: syntax error at or near "the" LINE 1: select I fought the law, the law won - ^ + ^ QUERY: select I fought the law, the law won CONTEXT: SQL statement in PL/PgSQL function "bad_sql2" near line 3 -- a RETURN expression is mandatory, except for void-returning |
