On 20 Aug 2002, Neil Conway wrote: > Vince Vielhaber <[EMAIL PROTECTED]> writes: > > And another one. > > 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.)
Is there any chance that pg_database_encoding_max_length() could return zero and give a divide by zero error? Or is that trapped? Vince. -- ========================================================================== Vince Vielhaber -- KA8CSH email: [EMAIL PROTECTED] http://www.pop4.net 56K Nationwide Dialup from $16.00/mo at Pop4 Networking http://www.camping-usa.com http://www.cloudninegifts.com http://www.meanstreamradio.com http://www.unknown-artists.com ========================================================================== ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/users-lounge/docs/faq.html