[CONJ-497] Long escapable string does not work Created: 2017-06-22 Updated: 2017-07-01 Resolved: 2017-06-27 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Other |
| Affects Version/s: | 2.0.0-RC, 1.6.0, 2.0.1, 1.6.1, 2.0.2 |
| Fix Version/s: | 2.0.3, 1.6.2 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Bart Laarhoven | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
As I can't copy-paste code here as our application uses Connector/J inside a complicated self-written framework, I'll describe the reproduction steps:
You'll see (or at least I see) that 8000000 inserts a string length 8000000 (how it should be), but the 10000000 inserts a string half its length: 5000000. I think I also found the problem and the solution, so I will add a pull request. In our case (where we insert very large JSON strings with a lot of doublequotes) this makes us lose data and generate invalid JSON strings. This does not happen in 1.5.9, but does happen in 1.6.x and 2.0.x as far as I have tested. This is a critical bug as this results in invalid and lost data. |
| Comments |
| Comment by Bart Laarhoven [ 2017-06-22 ] |
|
Pull request: |
| Comment by Diego Dupin [ 2017-06-22 ] |
|
this is indeed critical, i'm checking now |
| Comment by Vorschuetz [ 2017-07-01 ] |
|
This also affects BLOBS. So thank you so much for fixing it! Great! |