ec_datasource_set_named_param_mode
Last updated March 2020
Name
ec_datasource_set_named_param_mode — Initialize a query to use named parameters
Synopsis
#include "modules/datasource/ecdatasource.h"
| (int) **ec_datasource_set_named_param_mode** (
| q, | |
| | param_count)
; | |
Description
Initialize a query to use named parameters by setting the params_positional
member of the cache to 0
.
Note
This function is for use with 'bind' variables; the details of how this works depends on the underlying driver being used.
- q
-
A pointer to an
ecdata_cache_query
. The following typedef applies to this data type:typedef struct ec_datasource_cache_query ecdata_cache_query;
. - param_count
-
The number of parameters.
On success this function returns 1
.
It is legal to call this function in any thread.
See Also
Was this page helpful?