• Bruce Momjian's avatar
    Allow psql multi-line column values to align in the proper columns · c01999a5
    Bruce Momjian authored
      If the second output column value is 'a\nb', the 'b' should appear
      in the second display column, rather than the first column as it
      does now.
    
    Change libpq's PQdsplen() to return more useful values.
    
    > Note: this changes the PQdsplen function, it can now return zero or
    > minus one which was not possible before. It doesn't appear anyone is
    > actually using the functions other than psql but it is a change. The
    > functions are not actually documentated anywhere so it's not like we're
    > breaking a defined interface. The new semantics follow the Unicode
    > standard.
    
    BACKWARD COMPATIBLE CHANGE.
    
    The only user-visible change I saw in the regression tests is that a
    SELECT * on a table where all the columns have been dropped doesn't
    return a blank line like before.  This seems like a step forward.
    
    Martijn van Oosterhout
    c01999a5
mbprint.c 6.83 KB