mirror of
https://github.com/postgres/postgres.git
synced 2025-05-12 16:21:30 +03:00
Document the exponentiation operator as associating left to right.
Common mathematical convention is that exponentiation associates right to left. We aren't going to change the parser for this, but we could note it in the operator's description. (It's already noted in the operator precedence/associativity table, but users might not look there.) Per bug #13829 from Henrik Pauli.
This commit is contained in:
parent
e12c74401b
commit
3ccc4e9ce3
@ -505,7 +505,7 @@
|
|||||||
|
|
||||||
<row>
|
<row>
|
||||||
<entry> <literal>^</literal> </entry>
|
<entry> <literal>^</literal> </entry>
|
||||||
<entry>exponentiation</entry>
|
<entry>exponentiation (associates left to right)</entry>
|
||||||
<entry><literal>2.0 ^ 3.0</literal></entry>
|
<entry><literal>2.0 ^ 3.0</literal></entry>
|
||||||
<entry><literal>8</literal></entry>
|
<entry><literal>8</literal></entry>
|
||||||
</row>
|
</row>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user