Searched refs:sqlstate (Results 1 - 23 of 23) sorted by relevance

/PHP_5_5/ext/pdo/
H A Dphp_pdo_driver.h656 const char *sqlstate, const char *supp TSRMLS_DC);
H A Dpdo_dbh.c41 void pdo_raise_impl_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, const char *sqlstate, const char *supp TSRMLS_DC) /* {{{ */ argument
60 strncpy(*pdo_err, sqlstate, 6);
62 /* hash sqlstate to error messages */
121 /* hash sqlstate to error messages */
/PHP_5_5/ext/pdo_dblib/
H A Ddblib_driver.c103 S->err.sqlstate = stmt->error_code;
306 H->err.sqlstate = dbh->error_code;
404 DBLIB_G(err).sqlstate,
H A Dpdo_dblib.c129 strcpy(einfo->sqlstate, state);
169 dblib_globals->err.sqlstate = dblib_globals->sqlstate;
H A Dphp_pdo_dblib_int.h107 char *sqlstate; member in struct:__anon156
131 char sqlstate[6]; variable
/PHP_5_5/ext/pdo_pgsql/
H A Dpgsql_statement.c180 char *sqlstate = pdo_pgsql_sqlstate(S->result); local
187 if (sqlstate && !strcmp(sqlstate, "42P05")) {
197 pdo_pgsql_error_stmt(stmt, status, sqlstate);
H A Dphp_pdo_pgsql_int.h86 extern int _pdo_pgsql_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, int errcode, const char *sqlstate, const char *file, int line TSRMLS_DC);
H A Dpgsql_driver.c63 int _pdo_pgsql_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, int errcode, const char *sqlstate, const char *file, int line TSRMLS_DC) /* {{{ */ argument
79 if (sqlstate == NULL || strlen(sqlstate) >= sizeof(pdo_error_type)) {
83 strcpy(*pdo_err, sqlstate);
/PHP_5_5/ext/mysqli/
H A Dmysqli_exception.c39 void php_mysqli_throw_sql_exception(char *sqlstate, int errorno TSRMLS_DC, char *format, ...) argument
50 php_error_docref(NULL TSRMLS_CC, E_WARNING, "(%s/%d): %s", sqlstate, errorno, message);
63 if (sqlstate) {
64 zend_update_property_string(mysqli_exception_class_entry, sql_ex, "sqlstate", sizeof("sqlstate") - 1,
65 sqlstate TSRMLS_CC);
67 zend_update_property_string(mysqli_exception_class_entry, sql_ex, "sqlstate", sizeof("sqlstate") - 1,
H A Dmysqli_priv.h77 extern void php_mysqli_report_error(const char *sqlstate, int errorno, const char *error TSRMLS_DC);
79 extern void php_mysqli_throw_sql_exception(char *sqlstate, int errorno TSRMLS_DC, char *format, ...);
H A Dmysqli_prop.c219 add_assoc_string_ex(single_error, "sqlstate", sizeof("sqlstate"), message->sqlstate, 1);
230 add_assoc_string_ex(single_error, "sqlstate", sizeof("sqlstate"), mysql_sqlstate(mysql->mysql), 1);
416 add_assoc_string_ex(single_error, "sqlstate", sizeof("sqlstate"), message->sqlstate, 1);
427 add_assoc_string_ex(single_error, "sqlstate", sizeof("sqlstate"), mysql_stmt_sqlstat
[all...]
H A Dmysqli_report.c30 extern void php_mysqli_throw_sql_exception(char *sqlstate, int errorno TSRMLS_DC, char *format, ...);
49 /* {{{ void php_mysqli_report_error(char *sqlstate, int errorno, char *error) */
50 void php_mysqli_report_error(const char *sqlstate, int errorno, const char *error TSRMLS_DC) argument
52 php_mysqli_throw_sql_exception((char *)sqlstate, errorno TSRMLS_CC, "%s", error);
H A Dmysqli_warning.c47 zval_dtor(&(w->sqlstate));
66 ZVAL_UTF8_STRINGL(&(w->sqlstate), "HY000", sizeof("HY000") - 1, ZSTR_DUPLICATE);
116 ZVAL_UTF8_STRINGL(&(w->sqlstate), "HY000", sizeof("HY000") - 1, ZSTR_DUPLICATE);
242 **retval = w->sqlstate;
341 {"sqlstate", sizeof("sqlstate") - 1, mysqli_warning_sqlstate, NULL},
350 {ZEND_ACC_PUBLIC, "sqlstate", sizeof("sqlstate") - 1, -1, 0, NULL, 0, NULL},
H A Dphp_mysqli_structs.h153 zval sqlstate; member in struct:st_mysqli_warning
H A Dmysqli_api.c1883 char sqlstate[SQLSTATE_LENGTH+1]; local
1888 memcpy(sqlstate, mysql->mysql->net.sqlstate, SQLSTATE_LENGTH+1);
1899 memcpy(mysql->mysql->net.sqlstate, sqlstate, SQLSTATE_LENGTH+1);
H A Dmysqli_nonapi.c443 add_assoc_string_ex(single_error, "sqlstate", sizeof("sqlstate"), message->sqlstate, 1);
454 add_assoc_string_ex(single_error, "sqlstate", sizeof("sqlstate"), mysql_sqlstate(mysql->mysql), 1);
487 add_assoc_string_ex(single_error, "sqlstate", sizeof("sqlstate"), message->sqlstate, 1);
498 add_assoc_string_ex(single_error, "sqlstate", sizeof("sqlstate"), mysql_stmt_sqlstat
[all...]
/PHP_5_5/ext/mysqlnd/
H A Dmysqlnd_auth.c133 if (auth_resp_packet->sqlstate[0]) {
134 strlcpy(conn->error_info->sqlstate, auth_resp_packet->sqlstate, sizeof(conn->error_info->sqlstate));
135 DBG_ERR_FMT("ERROR:%u [SQLSTATE:%s] %s", auth_resp_packet->error_no, auth_resp_packet->sqlstate, auth_resp_packet->error);
H A Dmysqlnd_priv.h117 strlcpy((error_info).sqlstate, "00000", sizeof((error_info).sqlstate)); \
130 strlcpy((error_info).sqlstate, (b), sizeof((error_info).sqlstate)); \
136 strlcpy(error_for_the_list.sqlstate, (b), sizeof(error_for_the_list.sqlstate)); \
149 SET_CLIENT_ERROR((error_info_to), (error_info_from).error_no, (error_info_from).sqlstate, (error_info_from).error); \
H A Dmysqlnd_structs.h112 char sqlstate[MYSQLND_SQLSTATE_LENGTH + 1]; member in struct:st_mysqlnd_error_info
121 char sqlstate[MYSQLND_SQLSTATE_LENGTH + 1]; member in struct:st_mysqlnd_error_list_element
H A Dmysqlnd_wireprotocol.h84 char sqlstate[MYSQLND_SQLSTATE_LENGTH + 1]; member in struct:st_mysqlnd_packet_greet
121 char sqlstate[MYSQLND_SQLSTATE_LENGTH + 1]; member in struct:st_mysqlnd_packet_auth_response
151 char sqlstate[MYSQLND_SQLSTATE_LENGTH + 1]; member in struct:st_mysqlnd_packet_ok
173 char sqlstate[MYSQLND_SQLSTATE_LENGTH + 1]; member in struct:st_mysqlnd_packet_eof
H A Dmysqlnd.c241 SET_CLIENT_ERROR(*conn->error_info, ok_response->error_no, ok_response->sqlstate, ok_response->error);
287 SET_CLIENT_ERROR(*conn->error_info, ok_response->error_no, ok_response->sqlstate, ok_response->error);
780 SET_CLIENT_ERROR(*conn->error_info, greet_packet->error_no, greet_packet->sqlstate, greet_packet->error);
1556 /* {{{ mysqlnd_conn_data::sqlstate */
1558 MYSQLND_METHOD(mysqlnd_conn_data, sqlstate)(const MYSQLND_CONN_DATA * const conn TSRMLS_DC)
1560 return conn->error_info->sqlstate[0] ? conn->error_info->sqlstate:MYSQLND_SQLSTATE_NULL;
2961 MYSQLND_METHOD(mysqlnd_conn_data, sqlstate),
H A Dmysqlnd_wireprotocol.c238 unsigned int *error_no, char *sqlstate TSRMLS_DC)
246 memcpy(sqlstate, unknown_sqlstate, MYSQLND_SQLSTATE_LENGTH);
252 sqlstate is following. No need to check for buf_left_len as we checked > 2 above,
258 memcpy(sqlstate, p, MYSQLND_SQLSTATE_LENGTH);
270 sqlstate[MYSQLND_SQLSTATE_LENGTH] = '\0';
354 &packet->error_no, packet->sqlstate
357 The server doesn't send sqlstate in the greet packet.
362 memcpy(packet->sqlstate, "08004", MYSQLND_SQLSTATE_LENGTH);
674 &packet->error_no, packet->sqlstate
829 &packet->error_no, packet->sqlstate
[all...]
H A Dmysqlnd_ps.c1723 /* {{{ mysqlnd_stmt::sqlstate */
1725 MYSQLND_METHOD(mysqlnd_stmt, sqlstate)(const MYSQLND_STMT * const s TSRMLS_DC)
1728 return stmt && stmt->error_info->sqlstate[0] ? stmt->error_info->sqlstate:MYSQLND_SQLSTATE_NULL;
2333 MYSQLND_METHOD(mysqlnd_stmt, sqlstate),

Completed in 50 milliseconds