Lines Matching refs:einfo

50 	pdo_mysql_error_info *einfo;  in _pdo_mysql_error()  local
58 einfo = &S->einfo; in _pdo_mysql_error()
61 einfo = &H->einfo; in _pdo_mysql_error()
65 einfo->errcode = mysql_stmt_errno(S->stmt); in _pdo_mysql_error()
67 einfo->errcode = mysql_errno(H->server); in _pdo_mysql_error()
70 einfo->file = file; in _pdo_mysql_error()
71 einfo->line = line; in _pdo_mysql_error()
73 if (einfo->errmsg) { in _pdo_mysql_error()
74 pefree(einfo->errmsg, dbh->is_persistent); in _pdo_mysql_error()
75 einfo->errmsg = NULL; in _pdo_mysql_error()
78 if (einfo->errcode) { in _pdo_mysql_error()
79 if (einfo->errcode == 2014) { in _pdo_mysql_error()
80 einfo->errmsg = pestrdup( in _pdo_mysql_error()
86 } else if (einfo->errcode == 2057) { in _pdo_mysql_error()
87 einfo->errmsg = pestrdup( in _pdo_mysql_error()
93 einfo->errmsg = pestrdup(mysql_error(H->server), dbh->is_persistent); in _pdo_mysql_error()
108 zend_throw_exception_ex(php_pdo_get_exception(), einfo->errcode TSRMLS_CC, "SQLSTATE[%s] [%d] %s", in _pdo_mysql_error()
109 *pdo_err, einfo->errcode, einfo->errmsg); in _pdo_mysql_error()
112 PDO_DBG_RETURN(einfo->errcode); in _pdo_mysql_error()
120 pdo_mysql_error_info *einfo = &H->einfo; in pdo_mysql_fetch_error_func() local
126 einfo = &S->einfo; in pdo_mysql_fetch_error_func()
128 einfo = &H->einfo; in pdo_mysql_fetch_error_func()
131 if (einfo->errcode) { in pdo_mysql_fetch_error_func()
132 add_next_index_long(info, einfo->errcode); in pdo_mysql_fetch_error_func()
133 add_next_index_string(info, einfo->errmsg, 1); in pdo_mysql_fetch_error_func()
152 if (H->einfo.errmsg) { in mysql_handle_closer()
153 pefree(H->einfo.errmsg, dbh->is_persistent); in mysql_handle_closer()
154 H->einfo.errmsg = NULL; in mysql_handle_closer()
270 PDO_DBG_RETURN(H->einfo.errcode ? -1 : 0); in mysql_handle_doer()
579 H->einfo.errcode = 0;
580 H->einfo.errmsg = NULL;