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

/PHP_5_3/ext/mysqli/
H A Dmysqli_api.c1796 char sqlstate[SQLSTATE_LENGTH+1]; local
1801 memcpy(sqlstate, mysql->mysql->net.sqlstate, SQLSTATE_LENGTH+1);
1812 memcpy(mysql->mysql->net.sqlstate, sqlstate, SQLSTATE_LENGTH+1);
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_nonapi.c474 strcpy(mysql->mysql->net.sqlstate, s_sqlstate);
H A Dmysqli_priv.h72 extern void php_mysqli_report_error(const char *sqlstate, int errorno, const char *error TSRMLS_DC);
75 extern void php_mysqli_throw_sql_exception(char *sqlstate, int errorno TSRMLS_DC, char *format, ...);
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;
326 {"sqlstate", sizeof("sqlstate") - 1, mysqli_warning_sqlstate, NULL},
335 {ZEND_ACC_PUBLIC, "sqlstate", sizeof("sqlstate") - 1, 0, NULL, 0, NULL},
H A Dphp_mysqli_structs.h153 zval sqlstate; member in struct:st_mysqli_warning
/PHP_5_3/ext/pdo/
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 */
H A Dphp_pdo_driver.h661 const char *sqlstate, const char *supp TSRMLS_DC);
/PHP_5_3/ext/pdo_dblib/
H A Ddblib_driver.c100 S->err.sqlstate = stmt->error_code;
201 H->err.sqlstate = dbh->error_code;
260 DBLIB_G(err).sqlstate,
H A Dpdo_dblib.c125 strcpy(einfo->sqlstate, state);
165 dblib_globals->err.sqlstate = dblib_globals->sqlstate;
H A Dphp_pdo_dblib_int.h105 char *sqlstate; member in struct:__anon127
144 char sqlstate[6]; variable
/PHP_5_3/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_3/ext/mysqlnd/
H A Dmysqlnd_loaddata.c205 strcpy(conn->error_info.sqlstate, UNKNOWN_SQLSTATE);
232 strcpy(conn->error_info.sqlstate, UNKNOWN_SQLSTATE);
H A Dmysqlnd_priv.h135 strlcpy((error_info).sqlstate, "00000", sizeof((error_info).sqlstate)); \
141 strlcpy((error_info).sqlstate, (b), sizeof((error_info).sqlstate)); \
H A Dmysqlnd_structs.h103 char sqlstate[MYSQLND_SQLSTATE_LENGTH + 1]; member in struct:st_mysqlnd_error_info
H A Dmysqlnd_wireprotocol.c218 unsigned int *error_no, char *sqlstate TSRMLS_DC)
226 memcpy(sqlstate, unknown_sqlstate, MYSQLND_SQLSTATE_LENGTH);
232 sqlstate is following. No need to check for buf_left_len as we checked > 2 above,
238 memcpy(sqlstate, p, MYSQLND_SQLSTATE_LENGTH);
250 sqlstate[MYSQLND_SQLSTATE_LENGTH] = '\0';
322 &packet->error_no, packet->sqlstate
325 The server doesn't send sqlstate in the greet packet.
330 memcpy(packet->sqlstate, "08004", MYSQLND_SQLSTATE_LENGTH);
547 &packet->error_no, packet->sqlstate
615 Error : error_code + '#' + sqlstate
[all...]
H A Dmysqlnd_wireprotocol.h82 char sqlstate[MYSQLND_SQLSTATE_LENGTH + 1]; member in struct:st_mysqlnd_packet_greet
119 char sqlstate[MYSQLND_SQLSTATE_LENGTH + 1]; member in struct:st_mysqlnd_packet_ok
141 char sqlstate[MYSQLND_SQLSTATE_LENGTH + 1]; member in struct:st_mysqlnd_packet_eof
H A Dmysqlnd.c253 SET_CLIENT_ERROR(conn->error_info, ok_response->error_no, ok_response->sqlstate, ok_response->error);
298 SET_CLIENT_ERROR(conn->error_info, ok_response->error_no, ok_response->sqlstate, ok_response->error);
517 if (ok_packet->sqlstate[0]) {
518 strlcpy(conn->error_info.sqlstate, ok_packet->sqlstate, sizeof(conn->error_info.sqlstate));
519 DBG_ERR_FMT("ERROR:%u [SQLSTATE:%s] %s", ok_packet->error_no, ok_packet->sqlstate, ok_packet->error);
667 SET_CLIENT_ERROR(conn->error_info, greet_packet->error_no, greet_packet->sqlstate, greet_packet->error);
1406 /* {{{ mysqlnd_conn::sqlstate */
1408 MYSQLND_METHOD(mysqlnd_conn, sqlstate)(cons
[all...]
H A Dmysqlnd_ps.c1742 /* {{{ mysqlnd_stmt::sqlstate */
1744 MYSQLND_METHOD(mysqlnd_stmt, sqlstate)(const MYSQLND_STMT * const s TSRMLS_DC)
1747 return stmt && stmt->error_info.sqlstate[0] ? stmt->error_info.sqlstate:MYSQLND_SQLSTATE_NULL;
2335 MYSQLND_METHOD(mysqlnd_stmt, sqlstate),

Completed in 56 milliseconds