Bug #11258 Long input lines in mysql client not handled correctly on NetWare
Submitted: 11 Jun 2005 6:34 Modified: 4 Jan 2008 10:20
Reporter: Jim Winstead Email Updates:
Status: Can't repeat Impact on me:
Category:MySQL Server: Command-line Clients Severity:S3 (Non-critical)
Version:4.1.12 OS:Novell NetWare (Novell NetWare)
Assigned to: CPU Architecture:Any

[11 Jun 2005 6:34] Jim Winstead
This is the NetWare version of Bug #10840.

In client/mysql.cc, the input handling for NetWare only calls fgets() once, and doesn't correctly handle an input line that is longer than sizeof(linebuffer).

This can be fixed similarly to how it was fixed for the _cgets() usage on Windows.

How to repeat:
Run mysql client, enter command longer than 255 characters.
[1 Aug 2005 16:23] Peter Brawley
This mysql client bug also occurs in the Windows version of 5.0.7 and 5.0.10 (did not test 5.0.9).
[4 Jan 2008 10:15] MySQL Verification Team
i entered a string at least 300+ chars long with no problems....

Attachment: bug11258_5.0.54_client.jpg (image/jpeg, text), 50.02 KiB.

[4 Jan 2008 10:20] MySQL Verification Team
the netware console isn't great...  the above was a command like this

select length('<301 chars here>');

I tried > 800 chars it also worked.