Doc fix: scale(numeric) returns integer, not numeric.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 11 May 2017 22:09:22 +0000 (18:09 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 11 May 2017 22:09:22 +0000 (18:09 -0400)
Thinko in commit abb173392, which introduced this function.

Report: https://postgr.es/m/20170511215234.1795.54347@wrigleys.postgresql.org

doc/src/sgml/func.sgml

index 4b9a54c0c9ea6e07cf1c4390d355268b865ab55b..e462fdcd595144d672b7930b63cb09c6727fb45d 100644 (file)
         </indexterm>
         <literal><function>scale(<type>numeric</type>)</function></literal>
        </entry>
-       <entry><type>numeric</type></entry>
+       <entry><type>integer</type></entry>
        <entry>scale of the argument (the number of decimal digits in the fractional part)</entry>
        <entry><literal>scale(8.41)</literal></entry>
        <entry><literal>2</literal></entry>