Re: is it a bug?
От
Tom Lane
Тема
Re: is it a bug?
Дата
Msg-id
14917.975424197@sss.pgh.pa.us
Ответ на
is it a bug? (He weiping)
Список
Дерево обсуждения
Re: [HACKERS] is it a bug? Thomas Lockhart <lockhart@alumni.caltech.edu>
"He weiping" writes:
> but it seems the "lpad", "rpad" don't work,
> when I type:
> select lpad('laser', 4, 'a');
> in psql, the result is still=20
> 'laser', the same with 'rpad',
> Is it a bug or I'm mis-understaning the lpad and/or rpad functions?
lpad and rpad never truncate, they only pad.
Perhaps they *should* truncate if the specified length is less than
the original string length. Does Oracle do that?
regards, tom lane
В списке pgsql-general по дате отправления