[HACKERS] Oracle-compatible lpad/rpad behavior

2000-12-12 Thread Paul
Tom, Hope this helps >From the Oracle manual: Purpose Returns char1, left-padded to length n with the sequence of characters in char2; char2 defaults to a single blank. If char1 is longer than n, this function returns the portion of char1 that fits in n. The argument n is the total length of th

[HACKERS] Oracle-compatible lpad/rpad behavior

2000-12-07 Thread Tom Lane
Zeugswetter Andreas SB <[EMAIL PROTECTED]> writes: >> 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? > Yes, it truncates, same as Informix. I went to fix this and then re