Bug #29146 | Output truncated when resultset contains \r | ||
---|---|---|---|
Submitted: | 15 Jun 2007 19:08 | Modified: | 5 Mar 2008 8:47 |
Reporter: | Todd Farmer (OCA) | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Command-line Clients | Severity: | S3 (Non-critical) |
Version: | 5.0.41 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[15 Jun 2007 19:08]
Todd Farmer
[22 Feb 2008 21:22]
Omer Barnir
workaround Use \G
[27 Feb 2008 18:39]
Jim Winstead
Is anything really getting truncated here? \r is a carriage return, which on many (most?) terminals will simply move the insertion point back to the beginning of the line. The output is exactly what I would expect. The first row is printing everything up to the \r, the insertion point is getting moved back to the beginning of the line, and then ' | ' is being printed, overwriting the first few characters of what was already printed. This is different from \n, which goes to the next row, and is why the second row is split across two lines. I believe that this is not a bug.
[5 Mar 2008 8:47]
Todd Farmer
Jim, You're exactly right, thanks for pointing the way here. Marking as not a bug.