[CONC-563] Incorrect handling of max_column size sent by server to client in Column definition packet Created: 2021-07-26 Updated: 2021-07-26 Resolved: 2021-07-26 |
|
| Status: | Closed |
| Project: | MariaDB Connector/C |
| Component/s: | Prepared Statements |
| Affects Version/s: | None |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Critical |
| Reporter: | Dmitry Shulga | Assignee: | Georg Richter |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Running the following MTR test case
leads to test failure in case it is run with the option --ps-protocol with the following diagnostic message:
Running above mentioned test under debugger shows that resultset metadata in Server Response packet is set correctly. Discussion of this issue with Georg discovered surprising thing - Max column size sent in Response packet is ignored and actual value is calculated based on constants initialized in the function mysql_init_ps_subsystem(). It seems such implementation is good candidate for rewriting. |
| Comments |
| Comment by Georg Richter [ 2021-07-26 ] |
|
Duplicate of |