git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 4f3924d) | patch
Allow named parameters to be specified using => in addition to :=
2015年3月10日 14:59:11 +0000 (10:59 -0400)
2015年3月10日 15:09:41 +0000 (11:09 -0400)
commit 865f14a2d31af23a05bbf2df04c274629c5d5c4d
Allow named parameters to be specified using => in addition to :=

SQL has standardized on => as the use of to specify named parameters,
and we've wanted for many years to support the same syntax ourselves,
but this has been complicated by the possible use of => as an operator
name. In PostgreSQL 9.0, we began emitting a warning when an operator
named => was defined, and in PostgreSQL 9.2, we stopped shipping a
=>(text, text) operator as part of hstore. By the time the next major
version of PostgreSQL is released, => will have been deprecated for a
full five years, so hopefully there won't be too many people still
relying on it. We continue to support := for compatibility with
previous PostgreSQL releases.

Pavel Stehule, reviewed by Petr Jelinek, with a few documentation
tweaks by me.
doc/src/sgml/func.sgml diff | blob | blame | history
doc/src/sgml/syntax.sgml diff | blob | blame | history
doc/src/sgml/xfunc.sgml diff | blob | blame | history
src/backend/commands/operatorcmds.c diff | blob | blame | history
src/backend/parser/gram.y diff | blob | blame | history
src/backend/parser/scan.l diff | blob | blame | history
src/test/regress/expected/create_operator.out diff | blob | blame | history
src/test/regress/expected/polymorphism.out diff | blob | blame | history
src/test/regress/sql/create_operator.sql diff | blob | blame | history
src/test/regress/sql/polymorphism.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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