]> granicus.if.org Git - postgresql/commit
This patch should fix the problem. Doesn't include my previous patch
authorBruce Momjian <bruce@momjian.us>
Thu, 22 Aug 2002 04:55:05 +0000 (04:55 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 22 Aug 2002 04:55:05 +0000 (04:55 +0000)
commitd86dee3eddfaec1f2faddc5b807f2b13d58adcdd
tree922ad18695aeafb5709e5c83be388335a270499f
parentcbe733d7527058300f325d7b3f8fec4aa4ffe3de
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
src/backend/utils/adt/oracle_compat.c