From 70d8a2c29e809c90f7caaded2b4f47b1cf18d01d Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 16 Feb 2010 21:18:02 +0000 Subject: Honor to_char() "FM" specification in YYY, YY, and Y; it was already honored by YYYY. Also document Oracle "toggle" FM behavior. Per report from Guy Rouillier --- doc/src/sgml/func.sgml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index a4ea1462a8b..71952ee1fc4 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,4 +1,4 @@ - + Functions and Operators @@ -5174,7 +5174,11 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})'); FM suppresses leading zeroes and trailing blanks that would otherwise be added to make the output of a pattern be - fixed-width. + fixed-width. In PostgreSQL, + FM modifies only the next specification, while in + Oracle FM affects all subsequent + specifications, and repeated FM modifiers + toggle fill mode on and off. -- cgit v1.2.3