static void
MYSQLND_METHOD(mysqlnd_error_info, reset)(MYSQLND_ERROR_INFO * const info)
{
- DBG_ENTER("mysqlnd_error_info::reset")
+ DBG_ENTER("mysqlnd_error_info::reset");
info->error_no = 0;
info->error[0] = '\0';
const char * const sqlstate,
const char * const error)
{
- DBG_ENTER("mysqlnd_error_info::set_client_error")
+ DBG_ENTER("mysqlnd_error_info::set_client_error");
if (err_no) {
info->error_no = err_no;
strlcpy(info->sqlstate, sqlstate, sizeof(info->sqlstate));
enum_func_status
mysqlnd_error_info_init(MYSQLND_ERROR_INFO * const info, zend_bool persistent)
{
- DBG_ENTER("mysqlnd_error_info_init")
+ DBG_ENTER("mysqlnd_error_info_init");
info->m = mysqlnd_error_info_get_methods();
info->m->reset(info);
static enum mysqlnd_connection_state
MYSQLND_METHOD(mysqlnd_connection_state, get)(const struct st_mysqlnd_connection_state * const state_struct)
{
- DBG_ENTER("mysqlnd_connection_state::get")
+ DBG_ENTER("mysqlnd_connection_state::get");
DBG_INF_FMT("State=%u", state_struct->state);
DBG_RETURN(state_struct->state);
}
static void
MYSQLND_METHOD(mysqlnd_connection_state, set)(struct st_mysqlnd_connection_state * const state_struct, const enum mysqlnd_connection_state state)
{
- DBG_ENTER("mysqlnd_connection_state::set")
+ DBG_ENTER("mysqlnd_connection_state::set");
DBG_INF_FMT("New state=%u", state);
state_struct->state = state;
DBG_VOID_RETURN;
void
mysqlnd_connection_state_init(struct st_mysqlnd_connection_state * const state)
{
- DBG_ENTER("mysqlnd_error_info_init")
+ DBG_ENTER("mysqlnd_error_info_init");
state->m = &MYSQLND_CLASS_METHOD_TABLE_NAME(mysqlnd_connection_state);
state->state = CONN_ALLOCED;
DBG_VOID_RETURN;