Home
last modified time | relevance | path

Searched refs:sqlstate (Results 1 – 25 of 39) sorted by relevance

12

/PHP-5.4/ext/mysqli/
H A Dmysqli_exception.c39 void php_mysqli_throw_sql_exception(char *sqlstate, int errorno TSRMLS_DC, char *format, ...) in php_mysqli_throw_sql_exception() argument
50 php_error_docref(NULL TSRMLS_CC, E_WARNING, "(%s/%d): %s", sqlstate, errorno, message); in php_mysqli_throw_sql_exception()
63 if (sqlstate) { in php_mysqli_throw_sql_exception()
65 sqlstate TSRMLS_CC); in php_mysqli_throw_sql_exception()
H A Dmysqli_report.c30 extern void php_mysqli_throw_sql_exception(char *sqlstate, int errorno TSRMLS_DC, char *format, ...…
50 void php_mysqli_report_error(const char *sqlstate, int errorno, const char *error TSRMLS_DC) in php_mysqli_report_error() argument
52 php_mysqli_throw_sql_exception((char *)sqlstate, errorno TSRMLS_CC, "%s", error); in php_mysqli_report_error()
H A Dmysqli_warning.c47 zval_dtor(&(w->sqlstate)); in php_clear_warnings()
66 ZVAL_UTF8_STRINGL(&(w->sqlstate), "HY000", sizeof("HY000") - 1, ZSTR_DUPLICATE); in php_new_warning()
116 ZVAL_UTF8_STRINGL(&(w->sqlstate), "HY000", sizeof("HY000") - 1, ZSTR_DUPLICATE); in php_new_warning()
242 **retval = w->sqlstate; in mysqli_warning_sqlstate()
H A Dmysqli_priv.h77 extern void php_mysqli_report_error(const char *sqlstate, int errorno, const char *error TSRMLS_DC);
80 extern void php_mysqli_throw_sql_exception(char *sqlstate, int errorno TSRMLS_DC, char *format, ...…
/PHP-5.4/ext/mysqlnd/
H A Dmysqlnd_priv.h132 strlcpy((error_info).sqlstate, "00000", sizeof((error_info).sqlstate)); \
145 strlcpy((error_info).sqlstate, (b), sizeof((error_info).sqlstate)); \
151 strlcpy(error_for_the_list.sqlstate, (b), sizeof(error_for_the_list.sqlstate)); \
164 …SET_CLIENT_ERROR((error_info_to), (error_info_from).error_no, (error_info_from).sqlstate, (error_i…
H A Dmysqlnd_wireprotocol.h84 char sqlstate[MYSQLND_SQLSTATE_LENGTH + 1]; member
121 char sqlstate[MYSQLND_SQLSTATE_LENGTH + 1]; member
151 char sqlstate[MYSQLND_SQLSTATE_LENGTH + 1]; member
173 char sqlstate[MYSQLND_SQLSTATE_LENGTH + 1]; member
H A Dmysqlnd_auth.c134 if (auth_resp_packet->sqlstate[0]) { in mysqlnd_auth_handshake()
135 …strlcpy(conn->error_info->sqlstate, auth_resp_packet->sqlstate, sizeof(conn->error_info->sqlstate)… in mysqlnd_auth_handshake()
136 …DBG_ERR_FMT("ERROR:%u [SQLSTATE:%s] %s", auth_resp_packet->error_no, auth_resp_packet->sqlstate, a… in mysqlnd_auth_handshake()
H A Dmysqlnd_wireprotocol.c220 unsigned int *error_no, char *sqlstate TSRMLS_DC) in php_mysqlnd_read_error_from_line()
228 memcpy(sqlstate, unknown_sqlstate, MYSQLND_SQLSTATE_LENGTH); in php_mysqlnd_read_error_from_line()
240 memcpy(sqlstate, p, MYSQLND_SQLSTATE_LENGTH); in php_mysqlnd_read_error_from_line()
252 sqlstate[MYSQLND_SQLSTATE_LENGTH] = '\0'; in php_mysqlnd_read_error_from_line()
336 &packet->error_no, packet->sqlstate in php_mysqlnd_greet_read()
610 &packet->error_no, packet->sqlstate in php_mysqlnd_auth_response_read()
765 &packet->error_no, packet->sqlstate in php_mysqlnd_ok_read()
855 &packet->error_no, packet->sqlstate in php_mysqlnd_eof_read()
1791 packet->error_info.sqlstate in php_mysqlnd_rowp_read()
1938 packet->error_info.sqlstate in php_mysqlnd_prepare_read()
[all …]
/PHP-5.4/ext/mysqli/tests/
H A Dmysqli_class_mysqli_properties_no_conn.phpt66 assert(@mysqli_sqlstate($mysqli) === @$mysqli->sqlstate);
67 printf("mysqli->sqlstate = '%s'/%s ('%s'/%s)\n",
68 @$mysqli->sqlstate, gettype(@$mysqli->sqlstate),
162 sqlstate = 'NULL'
183 sqlstate = 'NULL'
198 mysqli->sqlstate = ''/NULL (''/NULL)
235 sqlstate = 'NULL'
256 sqlstate = 'NULL'
271 mysqli->sqlstate = ''/NULL (''/NULL)
H A Dmysqli_class_mysqli_stmt_interface.phpt118 assert(mysqli_stmt_sqlstate($stmt) === $stmt->sqlstate);
119 printf("stmt->sqlstate = '%s'\n", $stmt->sqlstate);
155 sqlstate
166 sqlstate
189 stmt->sqlstate = '00000'
H A Dmysqli_class_mysqli_warning.phpt81 assert('' === $warning->sqlstate);
82 printf("warning->sqlstate= '%s'\n", $warning->sqlstate);
126 warning->sqlstate= ''
H A Dbug34810.phpt34 if ("HY000" != $warning->sqlstate)
35 printf("[003] Wrong sql state code: %s\n", $warning->sqlstate);
97 [%u|b%"sqlstate"]=>
137 [%u|b%"sqlstate"]=>
H A Dbug33090.phpt18 printf("%s\n", $link->sqlstate);
H A D072.phpt22 var_dump($w->sqlstate);
H A Dmysqli_class_mysqli_interface.phpt118 "sqlstate" => true,
209 assert(mysqli_sqlstate($link) === $mysqli->sqlstate);
210 printf("mysqli->sqlstate = '%s'/%s ('%s'/%s)\n",
211 $mysqli->sqlstate, gettype($mysqli->sqlstate),
301 mysqli->sqlstate = '00000'/%unicode|string% ('00000'/%unicode|string%)
H A Dmysqli_class_mysqli_warning_reflection.phpt106 Inspecting property 'sqlstate'
115 Default property 'sqlstate'
H A Dmysqli_get_warnings.phpt59 if ((!is_string($warning->sqlstate)) || ('' == $warning->sqlstate)) /* NULL or not there at all */
60 …("[012] Expecting string/not empty, got %s/%s\n", gettype($warning->sqlstate), $warning->sqlstate);
H A Dmysqli_kill.phpt108 [%u|b%"sqlstate"]=>
128 [%u|b%"sqlstate"]=>
/PHP-5.4/ext/pdo_dblib/
H A Dpdo_dblib.c129 strcpy(einfo->sqlstate, state); in ZEND_GET_MODULE()
169 dblib_globals->err.sqlstate = dblib_globals->sqlstate; in PHP_GINIT_FUNCTION()
H A Dphp_pdo_dblib_int.h107 char *sqlstate; member
131 char sqlstate[6];
H A Ddblib_driver.c103 S->err.sqlstate = stmt->error_code; in dblib_handle_preparer()
306 H->err.sqlstate = dbh->error_code; in pdo_dblib_handle_factory()
404 DBLIB_G(err).sqlstate, in pdo_dblib_handle_factory()
/PHP-5.4/ext/pdo_mysql/tests/
H A Dpdo_mysql_prepare_emulated.phpt27 if (isset($error_info['prepare']['sqlstate']) &&
28 ($error_info['prepare']['sqlstate'] !== $tmp[0])) {
30 $offset, $error_info['prepare']['sqlstate'], $tmp[0]);
59 if (isset($error_info['execute']['sqlstate']) &&
60 ($error_info['execute']['sqlstate'] !== $tmp[0])) {
62 $offset, $error_info['execute']['sqlstate'], $tmp[0]);
93 array(), array('execute' => array('sqlstate' => '42000')));
133 $params, array('execute' => array('sqlstate' => 'HY093')));
173 array('execute' => array('sqlstate' => '42000', 'mysql' => 1064)));
227 array('test'), array('execute' => array('sqlstate' => 'HY093')));
[all …]
H A Dpdo_mysql_prepare_native.phpt27 if (isset($error_info['prepare']['sqlstate']) &&
28 ($error_info['prepare']['sqlstate'] !== $tmp[0])) {
30 $offset, $error_info['prepare']['sqlstate'], $tmp[0]);
69 if (isset($error_info['execute']['sqlstate']) &&
70 ($error_info['execute']['sqlstate'] !== $tmp[0])) {
72 $offset, $error_info['execute']['sqlstate'], $tmp[0]);
104 array(), array('prepare' => array('sqlstate' => '42000')));
145 $params, array('execute' => array('sqlstate' => 'HY093')));
230 $params, array('execute' => array('sqlstate' => 'HY093')));
294 array('execute' => array('sqlstate' => '42000', 'mysql' => 1064)));
/PHP-5.4/ext/pdo_pgsql/
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, co…
H A Dpgsql_statement.c180 char *sqlstate = pdo_pgsql_sqlstate(S->result); in pgsql_stmt_execute() local
187 if (sqlstate && !strcmp(sqlstate, "42P05")) { in pgsql_stmt_execute()
197 pdo_pgsql_error_stmt(stmt, status, sqlstate); in pgsql_stmt_execute()

Completed in 38 milliseconds

12