Skip to content
Snippets Groups Projects
  • Bruce Momjian's avatar
    d86dee3e
    This patch should fix the problem. Doesn't include my previous patch · d86dee3e
    Bruce Momjian authored
    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
    d86dee3e
    History
    This patch should fix the problem. Doesn't include my previous patch
    Bruce Momjian authored
    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