int cp_db_connection_execute_statement(cp_db_connection *connection,
cp_db_statement *statement,
cp_vector *prm,
cp_result_set **results);
int cp_db_connection_execute_statement_args(cp_db_connection *connection,
cp_db_statement *statement,
cp_result_set **results, ...);
CP_FIELD_TYPE_BOOLEAN -- short CP_FIELD_TYPE_CHAR -- char * CP_FIELD_TYPE_SHORT -- short CP_FIELD_TYPE_INT -- int CP_FIELD_TYPE_LONG -- long CP_FIELD_TYPE_LONG_LONG -- long long CP_FIELD_TYPE_FLOAT -- float CP_FIELD_TYPE_DOUBLE -- double CP_FIELD_TYPE_VARCHAR -- char * CP_FIELD_TYPE_BLOB -- cp_string CP_FIELD_TYPE_DATE -- cp_timestampz CP_FIELD_TYPE_TIME -- cp_timestampz CP_FIELD_TYPE_TIMESTAMP -- cp_timestampz
Notice the asymmetry with cp_db_connection_select in that CP_FIELD_TYPE_CHAR and CP_FIELD_TYPE_VARCHAR type fields are passed as char * rather than cp_string.
If the statements returns results and the results parameter is not NULL, it is set to point to the created result set.
cp_db_connection_execute_statement_args allows specifying parameters as elipsis parameters rather than in a cp_vector structure.
This document was created by
man2html,
using the manual pages. Time: 22:48:28 GMT, April 10, 2006 |