Lines Matching refs:einfo

61 	pdo_mysql_error_info *einfo;  in _pdo_mysql_error()  local
69 einfo = &S->einfo; in _pdo_mysql_error()
72 einfo = &H->einfo; in _pdo_mysql_error()
77 einfo->errcode = mysql_stmt_errno(S->stmt); in _pdo_mysql_error()
82 einfo->errcode = mysql_errno(H->server); in _pdo_mysql_error()
85 einfo->file = file; in _pdo_mysql_error()
86 einfo->line = line; in _pdo_mysql_error()
88 if (einfo->errmsg) { in _pdo_mysql_error()
89 pefree(einfo->errmsg, dbh->is_persistent); in _pdo_mysql_error()
90 einfo->errmsg = NULL; in _pdo_mysql_error()
93 if (einfo->errcode) { in _pdo_mysql_error()
94 if (einfo->errcode == 2014) { in _pdo_mysql_error()
95 einfo->errmsg = pestrdup( in _pdo_mysql_error()
101 } else if (einfo->errcode == 2057) { in _pdo_mysql_error()
102 einfo->errmsg = pestrdup( in _pdo_mysql_error()
108 einfo->errmsg = pestrdup(mysql_error(H->server), dbh->is_persistent); in _pdo_mysql_error()
125 strcpy(*pdo_err, pdo_mysql_get_sqlstate(einfo->errcode)); in _pdo_mysql_error()
130 zend_throw_exception_ex(php_pdo_get_exception(), einfo->errcode TSRMLS_CC, "SQLSTATE[%s] [%d] %s", in _pdo_mysql_error()
131 *pdo_err, einfo->errcode, einfo->errmsg); in _pdo_mysql_error()
134 PDO_DBG_RETURN(einfo->errcode); in _pdo_mysql_error()
142 pdo_mysql_error_info *einfo = &H->einfo; in pdo_mysql_fetch_error_func() local
148 einfo = &S->einfo; in pdo_mysql_fetch_error_func()
150 einfo = &H->einfo; in pdo_mysql_fetch_error_func()
153 if (einfo->errcode) { in pdo_mysql_fetch_error_func()
154 add_next_index_long(info, einfo->errcode); in pdo_mysql_fetch_error_func()
155 add_next_index_string(info, einfo->errmsg, 1); in pdo_mysql_fetch_error_func()
174 if (H->einfo.errmsg) { in mysql_handle_closer()
175 pefree(H->einfo.errmsg, dbh->is_persistent); in mysql_handle_closer()
176 H->einfo.errmsg = NULL; in mysql_handle_closer()
296 PDO_DBG_RETURN(H->einfo.errcode ? -1 : 0); in mysql_handle_doer()
601 H->einfo.errcode = 0;
602 H->einfo.errmsg = NULL;