MySQL 9.1.0
Source Code Documentation
|
A service that provides the API for get string value from a row. More...
#include <mysql_statement_service.h>
Public Attributes | |
mysql_service_status_t(* | get )(my_h_row row, uint32_t column_index, mysql_cstring_with_length *data, bool *is_null) |
Get string at column_index from a row. More... | |
A service that provides the API for get string value from a row.
auto result = mysql_cstring_with_length{}; auto is_null = false; if (SERVICE_PLACEHOLDER(mysql_stmt_get_string) ->get(row, column_index, &result, &is_null) == MYSQL_FAILURE) { return {}; }
mysql_service_status_t(* s_mysql_mysql_stmt_get_string::get) (my_h_row row, uint32_t column_index, mysql_cstring_with_length *data, bool *is_null) |
Get string at column_index from a row.
[in] | row | The row handle |
[in] | column_index | 0-based index at which the data is extracted |
[out] | data | The extracted string |
[out] | is_null | Flag to indicate if value is null |
false | success |
true | failure |