Searched defs:sqlstate (Results 1 - 10 of 10) sorted by relevance

/PHP_5_5/ext/pdo_dblib/
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 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_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 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);
/PHP_5_5/ext/mysqlnd/
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
/PHP_5_5/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 */

Completed in 19 milliseconds