This patch should fix the problem. Doesn't include my previous patch

Bruce Momjian <bruce@momjian.us>

Commit: d86dee3eddfaec1f2faddc5b807f2b13d58adcdd
Author: Bruce Momjian <bruce@momjian.us>
Date: 2002-08-22T04:55:05Z
Releases: 7.3.1
This patch should fix the problem. Doesn't include my previous patch
for repeat(). Again, somewhat off-the-cuff, so I might have missed
something...

test=# select lpad('xxxxx',1431655765,'yyyyyyyyyyyyyyyy');
ERROR:  Requested length too large
test=# select rpad('xxxxx',1431655765,'yyyyyyyyyyyyyyyy');
ERROR:  Requested length too large

(That's on a Unicode DB, haven't tested other encodings but AFAICT
this fix should still work.)

Neil Conway

Files

PathChange+/−
src/backend/utils/adt/oracle_compat.c modified +11 −1