Bug #57641 | Substring out of range exception in ConsumeQuotedToken | ||
---|---|---|---|
Submitted: | 21 Oct 2010 21:27 | Modified: | 12 Nov 2010 16:35 |
Reporter: | Andreas Johansson | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / NET | Severity: | S3 (Non-critical) |
Version: | 6.3.5 | OS: | Any |
Assigned to: | Tony Bedford | CPU Architecture: | Any |
Tags: | consumequotedtoken, out of range exception, substring, tracingdriver |
[21 Oct 2010 21:27]
Andreas Johansson
[21 Oct 2010 21:28]
Andreas Johansson
Patch to allow incomplete quoted token
Attachment: IncompleteToken.patch (text/x-patch), 773 bytes.
[21 Oct 2010 21:28]
Andreas Johansson
Drop the last token if it is quoted and incomplete
Attachment: DropToken.patch (text/x-patch), 695 bytes.
[21 Oct 2010 21:30]
Andreas Johansson
Small app to reproduce
Attachment: Main.cs (text/x-csharp), 972 bytes.
[22 Oct 2010 19:03]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/121721 939 Reggie Burnett 2010-10-22 - Fixed TracingDriver so that it normalizes long queries before truncation so we don't get exceptions when quoted tokens land on the 300th character (bug #57641)
[22 Oct 2010 19:03]
Reggie Burnett
Fixed in 6.3.6+
[12 Nov 2010 16:35]
Tony Bedford
An entry has been added to the 6.3.6 changelog: When the tracing driver was used and a SQL statement was longer than 300 characters, an ArgumentOutOfRangeExcpetion occurred if the statement also contained a quoted character, and the 300th character was in the middle of a quoted token.