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

/PHP_TRUNK/ext/pdo_dblib/
H A Dphp_pdo_dblib_int.h107 char *sqlstate; member in struct:__anon1
131 char sqlstate[6]; variable
/PHP_TRUNK/ext/mysqli/
H A Dmysqli_api.c1862 char sqlstate[SQLSTATE_LENGTH+1]; local
1867 memcpy(sqlstate, mysql->mysql->net.sqlstate, SQLSTATE_LENGTH+1);
1878 memcpy(mysql->mysql->net.sqlstate, sqlstate, SQLSTATE_LENGTH+1);
H A Dmysqli_exception.c39 void php_mysqli_throw_sql_exception(char *sqlstate, int errorno, char *format, ...) argument
50 php_error_docref(NULL, E_WARNING, "(%s/%d): %s", sqlstate, errorno, message);
62 if (sqlstate) {
63 zend_update_property_string(mysqli_exception_class_entry, &sql_ex, "sqlstate", sizeof("sqlstate") - 1,
64 sqlstate);
66 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, 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) argument
52 php_mysqli_throw_sql_exception((char *)sqlstate, errorno, "%s", error);
H A Dphp_mysqli_structs.h159 zval sqlstate; member in struct:st_mysqli_warning
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_structs.h113 char sqlstate[MYSQLND_SQLSTATE_LENGTH + 1]; member in struct:st_mysqlnd_error_info
122 char sqlstate[MYSQLND_SQLSTATE_LENGTH + 1]; member in struct:st_mysqlnd_error_list_element
H A Dmysqlnd_wireprotocol.c236 unsigned int *error_no, char *sqlstate)
244 memcpy(sqlstate, unknown_sqlstate, MYSQLND_SQLSTATE_LENGTH);
250 sqlstate is following. No need to check for buf_left_len as we checked > 2 above,
256 memcpy(sqlstate, p, MYSQLND_SQLSTATE_LENGTH);
268 sqlstate[MYSQLND_SQLSTATE_LENGTH] = '\0';
352 &packet->error_no, packet->sqlstate
355 The server doesn't send sqlstate in the greet packet.
360 memcpy(packet->sqlstate, "08004", MYSQLND_SQLSTATE_LENGTH);
712 &packet->error_no, packet->sqlstate
867 &packet->error_no, packet->sqlstate
234 php_mysqlnd_read_error_from_line(zend_uchar *buf, size_t buf_len, char *error, int error_buf_len, unsigned int *error_no, char *sqlstate) argument
[all...]
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_TRUNK/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) /* {{{ */ argument
60 strncpy(*pdo_err, sqlstate, 6);
62 /* hash sqlstate to error messages */
118 /* hash sqlstate to error messages */
/PHP_TRUNK/ext/pdo_pgsql/
H A Dpgsql_driver.c65 int _pdo_pgsql_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, int errcode, const char *sqlstate, const char *msg, const char *file, int line) /* {{{ */ argument
81 if (sqlstate == NULL || strlen(sqlstate) >= sizeof(pdo_error_type)) {
85 strcpy(*pdo_err, sqlstate);
H A Dpgsql_statement.c176 char *sqlstate = pdo_pgsql_sqlstate(S->result); local
183 if (sqlstate && !strcmp(sqlstate, "42P05")) {
193 pdo_pgsql_error_stmt(stmt, status, sqlstate);

Completed in 22 milliseconds