mirror of
https://github.com/postgres/postgres.git
synced 2025-08-30 06:01:21 +03:00
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.
This commit is contained in:
@@ -6785,7 +6785,7 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
|
||||
Create interval from years, months, weeks, days, hours, minutes and
|
||||
seconds fields
|
||||
</entry>
|
||||
<entry><literal>make_interval(days := 10)</literal></entry>
|
||||
<entry><literal>make_interval(days => 10)</literal></entry>
|
||||
<entry><literal>10 days</literal></entry>
|
||||
</row>
|
||||
|
||||
|
Reference in New Issue
Block a user