Bug #86291 | MYSQL_DATA_TRUNCATED reported when buffer large enough | ||
---|---|---|---|
Submitted: | 12 May 2017 3:38 | Modified: | 7 Jul 2017 4:46 |
Reporter: | Francois Lamoureux | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: C API (client library) | Severity: | S3 (Non-critical) |
Version: | 5.7.18 | OS: | Ubuntu (16.04) |
Assigned to: | Assigned Account | CPU Architecture: | Any |
[12 May 2017 3:38]
Francois Lamoureux
[14 May 2017 20:04]
Francois Lamoureux
On a different table I also get the same sort of error. I even went as far as allocating double the column lenght. Given this FOR statement: ------- for (int x=0; x<mysql_num_fields(metadata); x++) { MYSQL_FIELD *field = mysql_fetch_field_direct(metadata, x); ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, " error: %4s, length: %5lu, buffer_length: %5lu, column size: %5lu", bind_results[x].error_value ? "true" : "no", (unsigned long) *bind_results[x].length, bind_results[x].buffer_length, field->length); } ------- This is what I got ------- error: no, length: 4, buffer_length: 22, column size: 11 error: no, length: 24, buffer_length: 25, column size: 24 error: no, length: 44, buffer_length: 45, column size: 44 error: no, length: 44, buffer_length: 10001, column size: 10000 error: true, length: 44, buffer_length: 101, column size: 100 error: true, length: 4, buffer_length: 22, column size: 11 error: no, length: 40, buffer_length: 40, column size: 23 error: true, length: 0, buffer_length: 37, column size: 36 error: true, length: 4, buffer_length: 22, column size: 11 error: true, length: 9, buffer_length: 46, column size: 45 error: true, length: 28, buffer_length: 257, column size: 256 error: true, length: 36, buffer_length: 37, column size: 36 error: true, length: 10, buffer_length: 51, column size: 50 error: true, length: 3, buffer_length: 46, column size: 45 error: true, length: 4, buffer_length: 22, column size: 11 error: true, length: 3, buffer_length: 46, column size: 45 error: true, length: 10, buffer_length: 16, column size: 15 error: no, length: 40, buffer_length: 40, column size: 23 error: no, length: 40, buffer_length: 40, column size: 23 error: true, length: 40, buffer_length: 40, column size: 23 error: true, length: 40, buffer_length: 40, column size: 23 error: no, length: 40, buffer_length: 40, column size: 23 error: true, length: 40, buffer_length: 40, column size: 23 error: no, length: 8, buffer_length: 30, column size: 15 error: no, length: 8, buffer_length: 30, column size: 15 error: no, length: 8, buffer_length: 30, column size: 15 error: no, length: 8, buffer_length: 30, column size: 15 error: no, length: 8, buffer_length: 30, column size: 15 error: true, length: 8, buffer_length: 30, column size: 15 -------
[19 May 2017 11:35]
Chiranjeevi Battula
Hello Francois, Thank you for the bug report. Could you please provide repeatable test case (exact steps/sample code, create table statement/database details etc. - please make it as private if you prefer) to confirm this issue at our end? Thanks, Chiranjeevi.
[7 Jun 2017 0:25]
Francois Lamoureux
Hi, sorry, I haven't forgotten about you nor this bug. I'll see if I can strip down my DB and program to the bare minimum.
[8 Jul 2017 1:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".