MySQL 9.1.0
Source Code Documentation
|
A service that provides the API to bind the parameters in prepared statements. More...
#include <mysql_statement_service.h>
Public Attributes | |
mysql_service_status_t(* | bind_param )(my_h_statement statement, uint32_t index, bool is_null, uint64_t type, bool is_unsigned, const void *data, unsigned long data_length, const char *name, unsigned long name_length) |
Bind a parameter. More... | |
A service that provides the API to bind the parameters in prepared statements.
Usage example:
For first parameter SERVICE_PLACEHOLDER(mysql_stmt_bind)->bind_param(statement, 0, false, MYSQL_TYPE_LONG, false, 4, 1, nullptr, 0);
mysql_service_status_t(* s_mysql_mysql_stmt_bind::bind_param) (my_h_statement statement, uint32_t index, bool is_null, uint64_t type, bool is_unsigned, const void *data, unsigned long data_length, const char *name, unsigned long name_length) |
Bind a parameter.
[in] | statement | A handle to the statement |
[in] | index | 0-based index of the parameter to be bound |
[in] | is_null | Whether the parameter can be null |
[in] | type | Type of the parameter. List of supported types: Table 6.1 at https://dev.mysql.com/doc/c-api/8.0/en/c-api-prepared-statement-type-codes.html |
[in] | bool | Whether the value is unsigned |
[in] | data | The data argument is the value for the member |
[in] | data_length | Length of the data |
[in] | name | Name of the parameter |
[in] | name_length | Name length of the parameter |
false | success |
true | failure |