Thread: to_char bug?
View Single Post

   
  #3 (permalink)  
Old 04-08-2008, 07:50 PM
Tom Lane
 
Posts: n/a
Default Re: to_char bug?

"Ben Trewern" <bendottrewern@mowlem.com> writes:
> It seems that to_char(1, '000') gives a string " 001" with a space in front.
> Is this a bug?


No.

Possibly you want 'FM000'.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

Reply With Quote