On Sat, Apr 26, 2008 at 11:37 PM, Philipp Matthias Hahn
<[EMAIL PROTECTED]> wrote:
> Hi!
>
>  On Fri, Apr 25, 2008 at 03:40:10PM +0200, Olaf van der Spek wrote:
>  > When queries contain binary data, mytop prints them as-is. This causes the 
> terminal to go weird. It might be a good idea not to print control chars.
>
>  Could you please provide an example, since I don't exactly understand
>  where you have that problem.

I don't have an example and it's an assumption. Consider a query like:
select * from t where f = 'AAAA'
A is 0x41. Now replace the string of A's by a string of arbitrary
length and arbitrary content, including bytes 0x00 - 0x1f and 0x80 -
0xff.
I assume that when this is printed to the terminal as is, the terminal
interprets some of these bytes as control codes, so it shouldn't be
printed as is.
Does this make it clear?
If not, I'll have to find out how those control codes work so I can
construct a query.

Greetings,

Olaf



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to