Home
last modified time | relevance | path

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

12

/php-src/ext/mysqli/
H A Dmysqli_exception.c28 void php_mysqli_throw_sql_exception(char *sqlstate, int errorno, char *format, ...) in php_mysqli_throw_sql_exception() argument
39 php_error_docref(NULL, E_WARNING, "(%s/%d): %s", sqlstate, errorno, message); in php_mysqli_throw_sql_exception()
51 if (sqlstate) { in php_mysqli_throw_sql_exception()
53 mysqli_exception_class_entry, Z_OBJ(sql_ex), "sqlstate", sizeof("sqlstate") - 1, sqlstate); in php_mysqli_throw_sql_exception()
H A Dmysqli_report.c24 extern void php_mysqli_throw_sql_exception(char *sqlstate, int errorno, char *format, ...);
43 void php_mysqli_report_error(const char *sqlstate, int errorno, const char *error) in php_mysqli_report_error() argument
45 php_mysqli_throw_sql_exception((char *)sqlstate, errorno, "%s", error); in php_mysqli_report_error()
H A Dmysqli_warning.c35 zval_ptr_dtor_str(&(w->sqlstate)); in php_clear_warnings()
53 ZVAL_STRINGL(&(w->sqlstate), "HY000", sizeof("HY000") - 1); in php_new_warning()
174 ZVAL_COPY(retval, &w->sqlstate); in mysqli_warning_sqlstate()
H A Dmysqli_priv.h59 extern void php_mysqli_report_error(const char *sqlstate, int errorno, const char *error);
61 extern void php_mysqli_throw_sql_exception(char *sqlstate, int errorno, char *format, ...);
/php-src/ext/pdo_mysql/tests/
H A Dpdo_mysql_prepare_emulated_myisam_index.phpt28 if (isset($error_info['prepare']['sqlstate']) &&
29 ($error_info['prepare']['sqlstate'] !== $tmp[0])) {
31 $offset, $error_info['prepare']['sqlstate'], $tmp[0]);
60 if (isset($error_info['execute']['sqlstate']) &&
61 ($error_info['execute']['sqlstate'] !== $tmp[0])) {
63 $offset, $error_info['execute']['sqlstate'], $tmp[0]);
93 prepex(3, $db, '', [], ['execute' => ['sqlstate' => '42000']]);
119 array('execute' => array('sqlstate' => '42000', 'mysql' => 1064)));
125 array('execute' => array('sqlstate' => '42000', 'mysql' => 1064)));
150 … $stmt = prepex(17, $db, $sql, array(1, 1), array('execute' => array('sqlstate' => 'HY093')));
H A Dpdo_mysql_prepare_emulated_anonymous_placeholders.phpt26 if (isset($error_info['prepare']['sqlstate']) &&
27 ($error_info['prepare']['sqlstate'] !== $tmp[0])) {
29 $offset, $error_info['prepare']['sqlstate'], $tmp[0]);
58 if (isset($error_info['execute']['sqlstate']) &&
59 ($error_info['execute']['sqlstate'] !== $tmp[0])) {
61 $offset, $error_info['execute']['sqlstate'], $tmp[0]);
91 prepex(3, $db, '', [], ['execute' => ['sqlstate' => '42000']]);
121 array('test'), array('execute' => array('sqlstate' => 'HY093')));
132 $params, array('execute' => array('sqlstate' => 'HY093')));
H A Dpdo_mysql_prepare_emulated_myisam.phpt26 if (isset($error_info['prepare']['sqlstate']) &&
27 ($error_info['prepare']['sqlstate'] !== $tmp[0])) {
29 $offset, $error_info['prepare']['sqlstate'], $tmp[0]);
58 if (isset($error_info['execute']['sqlstate']) &&
59 ($error_info['execute']['sqlstate'] !== $tmp[0])) {
61 $offset, $error_info['execute']['sqlstate'], $tmp[0]);
90 prepex(3, $db, '', [], ['execute' => ['sqlstate' => '42000']]);
115 array('execute' => array('sqlstate' => '42000', 'mysql' => 1064)));
119 array('execute' => array('sqlstate' => '42000', 'mysql' => 1064)));
H A Dpdo_mysql_prepare_native.phpt25 if (isset($error_info['prepare']['sqlstate']) &&
26 ($error_info['prepare']['sqlstate'] !== $tmp[0])) {
28 $offset, $error_info['prepare']['sqlstate'], $tmp[0]);
67 if (isset($error_info['execute']['sqlstate']) &&
68 ($error_info['execute']['sqlstate'] !== $tmp[0])) {
70 $offset, $error_info['execute']['sqlstate'], $tmp[0]);
99 prepex(3, $db, '', [], ['prepare' => ['sqlstate' => '42000']]);
142 $params, array('execute' => array('sqlstate' => 'HY093')));
H A Dpdo_mysql_prepare_native_myisam_index.phpt25 if (isset($error_info['prepare']['sqlstate']) &&
26 ($error_info['prepare']['sqlstate'] !== $tmp[0])) {
28 $offset, $error_info['prepare']['sqlstate'], $tmp[0]);
67 if (isset($error_info['execute']['sqlstate']) &&
68 ($error_info['execute']['sqlstate'] !== $tmp[0])) {
70 $offset, $error_info['execute']['sqlstate'], $tmp[0]);
99 prepex(3, $db, '', [], ['prepare' => ['sqlstate' => '42000']]);
127 array('execute' => array('sqlstate' => '42000', 'mysql' => 1064)));
H A Dpdo_mysql_prepare_emulated.phpt26 if (isset($error_info['prepare']['sqlstate']) &&
27 ($error_info['prepare']['sqlstate'] !== $tmp[0])) {
29 $offset, $error_info['prepare']['sqlstate'], $tmp[0]);
58 if (isset($error_info['execute']['sqlstate']) &&
59 ($error_info['execute']['sqlstate'] !== $tmp[0])) {
61 $offset, $error_info['execute']['sqlstate'], $tmp[0]);
90 prepex(3, $db, '', [], ['execute' => ['sqlstate' => '42000']]);
132 $params, array('execute' => array('sqlstate' => 'HY093')));
H A Dpdo_mysql_prepare_native_myisam.phpt25 if (isset($error_info['prepare']['sqlstate']) &&
26 ($error_info['prepare']['sqlstate'] !== $tmp[0])) {
28 $offset, $error_info['prepare']['sqlstate'], $tmp[0]);
67 if (isset($error_info['execute']['sqlstate']) &&
68 ($error_info['execute']['sqlstate'] !== $tmp[0])) {
70 $offset, $error_info['execute']['sqlstate'], $tmp[0]);
99 prepex(3, $db, '', [], ['prepare' => ['sqlstate' => '42000']]);
H A Dpdo_mysql_prepare_native_anonymous_placeholder.phpt25 if (isset($error_info['prepare']['sqlstate']) &&
26 ($error_info['prepare']['sqlstate'] !== $tmp[0])) {
28 $offset, $error_info['prepare']['sqlstate'], $tmp[0]);
67 if (isset($error_info['execute']['sqlstate']) &&
68 ($error_info['execute']['sqlstate'] !== $tmp[0])) {
70 $offset, $error_info['execute']['sqlstate'], $tmp[0]);
99 prepex(3, $db, '', [], ['prepare' => ['sqlstate' => '42000']]);
131 $params, array('execute' => array('sqlstate' => 'HY093')));
195 array('execute' => array('sqlstate' => '42000', 'mysql' => 1064)));
/php-src/ext/mysqlnd/
H A Dmysqlnd_wireprotocol.h75 char sqlstate[MYSQLND_SQLSTATE_LENGTH + 1]; member
112 char sqlstate[MYSQLND_SQLSTATE_LENGTH + 1]; member
142 char sqlstate[MYSQLND_SQLSTATE_LENGTH + 1]; member
163 char sqlstate[MYSQLND_SQLSTATE_LENGTH + 1]; member
294 char sqlstate[MYSQLND_SQLSTATE_LENGTH + 1]; member
H A Dmysqlnd_wireprotocol.c200 unsigned int *error_no, char *sqlstate) in php_mysqlnd_read_error_from_line() argument
220 memcpy(sqlstate, p, MYSQLND_SQLSTATE_LENGTH); in php_mysqlnd_read_error_from_line()
232 sqlstate[MYSQLND_SQLSTATE_LENGTH] = '\0'; in php_mysqlnd_read_error_from_line()
370 &packet->error_no, packet->sqlstate in php_mysqlnd_greet_read()
700 &packet->error_no, packet->sqlstate in php_mysqlnd_auth_response_read()
860 &packet->error_no, packet->sqlstate in php_mysqlnd_ok_read()
953 &packet->error_no, packet->sqlstate in php_mysqlnd_eof_read()
1370 strlcpy(info->sqlstate, sqlstate, sizeof(info->sqlstate)); in set_packet_error()
1756 packet->error_info.sqlstate in php_mysqlnd_rowp_read()
1858 packet->error_info.sqlstate in php_mysqlnd_prepare_read()
[all …]
H A Dmysqlnd_auth.c344 if (auth_resp_packet.sqlstate[0]) { in mysqlnd_auth_handshake()
345 …strlcpy(conn->error_info->sqlstate, auth_resp_packet.sqlstate, sizeof(conn->error_info->sqlstate)); in mysqlnd_auth_handshake()
346 …DBG_ERR_FMT("ERROR:%u [SQLSTATE:%s] %s", auth_resp_packet.error_no, auth_resp_packet.sqlstate, aut… in mysqlnd_auth_handshake()
1252 if (result_packet.sqlstate[0]) { in mysqlnd_caching_sha2_handle_server_response()
1253 strlcpy(conn->error_info->sqlstate, result_packet.sqlstate, sizeof(conn->error_info->sqlstate)); in mysqlnd_caching_sha2_handle_server_response()
1254 …DBG_ERR_FMT("ERROR:%u [SQLSTATE:%s] %s", result_packet.error_no, result_packet.sqlstate, result_pa… in mysqlnd_caching_sha2_handle_server_response()
/php-src/ext/pdo_pgsql/
H A Dphp_pdo_pgsql_int.h87 extern int _pdo_pgsql_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, int errcode, const char *sqlstate, co…
91 #define pdo_pgsql_error_stmt_msg(stmt, e, sqlstate, msg) \ argument
92 _pdo_pgsql_error(stmt->dbh, stmt, e, sqlstate, msg, __FILE__, __LINE__)
/php-src/ext/mysqli/tests/
H A Dmysqli_class_mysqli_stmt_interface.phpt124 assert(mysqli_stmt_sqlstate($stmt) === $stmt->sqlstate);
125 printf("stmt->sqlstate = '%s'\n", $stmt->sqlstate);
151 sqlstate
169 stmt->sqlstate = '00000'
H A Dbug34810.phpt35 if ("HY000" != $warning->sqlstate)
36 printf("[003] Wrong sql state code: %s\n", $warning->sqlstate);
94 ["sqlstate"]=>
H A Dgh7746.phpt2 Bug #GH-7746 mysqli_sql_exception->sqlstate is inaccessible
H A Dbug33090.phpt19 printf("%s\n", $link->sqlstate);
H A D072.phpt23 var_dump($w->sqlstate);
H A Dmysqli_class_mysqli_interface.phpt109 "sqlstate" => true,
195 assert(mysqli_sqlstate($link) === $mysqli->sqlstate);
196 printf("mysqli->sqlstate = '%s'/%s ('%s'/%s)\n",
197 $mysqli->sqlstate, gettype($mysqli->sqlstate),
282 mysqli->sqlstate = '00000'/string ('00000'/string)
H A Dmysqli_kill.phpt101 ["sqlstate"]=>
119 ["sqlstate"]=>
/php-src/ext/pdo_dblib/
H A Dpdo_dblib.c121 strcpy(einfo->sqlstate, state); in ZEND_GET_MODULE()
173 dblib_globals->err.sqlstate = dblib_globals->sqlstate; in PHP_GINIT_FUNCTION()
H A Dphp_pdo_dblib_int.h114 char *sqlstate; member
145 char sqlstate[6];

Completed in 43 milliseconds

12