bugfix to_char(1::smallint) behave unexpectedly by Fujii Masao masao.fujii@gmail.com