File tree 1 file changed +14
-4
lines changed
1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 1929
1929
2017-01-17 [323b96aa3] Register missing money operators in system catalogs
1930
1930
-->
1931
1931
<para>
1932
- Add <link linkend="datatype-money"><type>MONEY</></> operators
1933
- for multiplication and division with <type>INT8</> values (Peter
1934
- Eisentraut)
1932
+ Add operators for multiplication and division
1933
+ of <link linkend="datatype-money"><type>money</></link> values
1934
+ with <type>int8</> values (Peter Eisentraut)
1935
+ </para>
1936
+
1937
+ <para>
1938
+ Previously such cases would result in converting the <type>int8</>
1939
+ values to <type>float8</> and then using
1940
+ the <type>money</>-and-<type>float8</> operators. The new behavior
1941
+ avoids possible precision loss. But note that division
1942
+ of <type>money</> by <type>int8</> now truncates the quotient, like
1943
+ other integer-division cases, while the previous behavior would have
1944
+ rounded.
1935
1945
</para>
1936
1946
</listitem>
1937
1947
1941
1951
2016-09-14 [656df624c] Add overflow checks to money type input function
1942
1952
-->
1943
1953
<para>
1944
- More strictly check the <type>MONEY </> type for overflow operations
1954
+ More strictly check the <type>money </> type for overflow operations
1945
1955
(Peter Eisentraut)
1946
1956
</para>
1947
1957
</listitem>
You can’t perform that action at this time.
0 commit comments