Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Docs: fix claim that to_char('FM') removes trailing zeroes.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 25 Jun 2015 14:44:03 +0000 (10:44 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 25 Jun 2015 14:44:48 +0000 (10:44 -0400)
Of course, what it removes is leading zeroes.  Seems to have been a thinko
in commit ffe92d15d53625d5ae0c23f4e1984ed43614a33d.  Noted by Hubert Depesz
Lubaczewski.

doc/src/sgml/func.sgml

index 9a2a1f60657679424efc751727dd04a2e30af40f..c368f9f477e2e68c5c8d222dd8e66d9dd7c79636 100644 (file)
@@ -5694,7 +5694,7 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
       <tbody>
        <row>
         <entry><literal>FM</literal> prefix</entry>
-        <entry>fill mode (suppress padding blanks and trailing zeroes)</entry>
+        <entry>fill mode (suppress leading zeroes and padding blanks)</entry>
         <entry><literal>FMMonth</literal></entry>
        </row>
        <row>
@@ -6081,7 +6081,7 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
       <tbody>
        <row>
         <entry><literal>FM</literal> prefix</entry>
-        <entry>fill mode (suppress padding blanks and trailing zeroes)</entry>
+        <entry>fill mode (suppress leading zeroes and padding blanks)</entry>
         <entry><literal>FM9999</literal></entry>
        </row>
        <row>