[MDEV-18143] mysql_stmt_fetch return code is wrong if buffer size is 1 Created: 2019-01-05 Updated: 2019-05-09 Resolved: 2019-05-09 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | libmariadb |
| Affects Version/s: | 10.3.11 |
| Fix Version/s: | 10.3.13 |
| Type: | Bug | Priority: | Major |
| Reporter: | Daniël van Eeden | Assignee: | Georg Richter |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Compatibility | ||
| Environment: |
Fedora 29 |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
mysql_stmt_fetch() returns 0 instead of 101 when results are bound to a buffer of size 1 and the data is longer than 1. Output of the attached test case:
For buffer length 0..4 the expected result is 101 (MYSQL_DATA_TRUNCATED) |
| Comments |
| Comment by Daniël van Eeden [ 2019-01-06 ] |
|
This is related to |
| Comment by Daniël van Eeden [ 2019-03-05 ] |
|
Looks like this might have been fixed in 10.3.13 |
| Comment by Daniël van Eeden [ 2019-03-05 ] |
|
I can confirm that this is fixed in either 10.3.12 or 10.3.13 |
| Comment by Sergei Golubchik [ 2019-05-09 ] |
|
Thanks! |