altsql-shell icon indicating copy to clipboard operation
altsql-shell copied to clipboard

Null characters display inconsistentely

Open ewaters opened this issue 12 years ago • 1 comments

If you force pagination by narrowing your console window to force the following output to paginate:

select 'This is a long string that will cause the output to paginate', char(0);

You'll notice that the null character in wide output shows up as an empty, zero length string, but in less it shows up as a grey '^@' which upsets the formatting of the table output (the expected display width of that character was 0).

ewaters avatar Jul 02 '12 16:07 ewaters

Confirmed this still happens on the latest master.

lancew avatar May 17 '17 19:05 lancew