Jonathan Ellis wrote: : > Also, what happens if the specified length is less than zero? Error, : > or is it treated as zero? : : SQL> select ':' || lpad('abcd', -1, 'foobar') || ':' from dual; : : ': : -- : :: : : (colons added so it's obvious that it's a zero-length string) Returns not empty string but NULL: SQL> select nvl(lpad('abcd', -1, 'foobar'), 'Null') from dual; NVL( ---- Null -- Andrew W. Nosenko ([EMAIL PROTECTED])
- AW: [HACKERS] Re: [GENERAL] is it a bug? Zeugswetter Andreas SB
- Re: [GENERAL] Oracle-compatible lpad/rpad beha... Andrew Nosenko
- Re: [GENERAL] Oracle-compatible lpad/rpad ... Jonathan Ellis