[CONC-348] Add callback support for prepared statement Created: 2018-07-25 Updated: 2022-12-24 |
|
| Status: | Open |
| Project: | MariaDB Connector/C |
| Component/s: | Documentation |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major |
| Reporter: | Georg Richter | Assignee: | Georg Richter |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
In case an application uses a data type which has no corresponding MariaDB data type, additional memory needs to be allocated, and the data needs to be converted. Speaking of bulk insert, additional memory needs to be allocated for all parameters, so it would be much more efficient to have a callback function which retrieves the parameters from the application for each row. When retrieving information (mysql_stmt_fetch) raw data will be converted to the bind buffers, afterwards the application needs to convert the bind buffers to the application specific format. Proposal: callback functions:
New parameters for mysql_stmt_attr_set/get:
|