Home
last modified time | relevance | path

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

12

/PHP-8.2/ext/mysqli/
H A Dmysqli_exception.c30 void php_mysqli_throw_sql_exception(char *sqlstate, int errorno, char *format, ...) in php_mysqli_throw_sql_exception() argument
41 php_error_docref(NULL, E_WARNING, "(%s/%d): %s", sqlstate, errorno, message); in php_mysqli_throw_sql_exception()
53 if (sqlstate) { in php_mysqli_throw_sql_exception()
55 mysqli_exception_class_entry, Z_OBJ(sql_ex), "sqlstate", sizeof("sqlstate") - 1, sqlstate); in php_mysqli_throw_sql_exception()
H A Dmysqli_report.c26 extern void php_mysqli_throw_sql_exception(char *sqlstate, int errorno, char *format, ...);
45 void php_mysqli_report_error(const char *sqlstate, int errorno, const char *error) in php_mysqli_report_error() argument
47 php_mysqli_throw_sql_exception((char *)sqlstate, errorno, "%s", error); in php_mysqli_report_error()
H A Dmysqli_warning.c44 zval_ptr_dtor_str(&(w->sqlstate)); in php_clear_warnings()
62 ZVAL_UTF8_STRINGL(&(w->sqlstate), "HY000", sizeof("HY000") - 1, ZSTR_DUPLICATE); in php_new_warning()
183 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, ...);
H A Dmysqli.stub.php723 public string $sqlstate; variable in mysqli
1212 public string $sqlstate;
1338 public string $sqlstate;
1349 protected string $sqlstate = "00000";
/PHP-8.2/ext/pdo_pgsql/
H A Dphp_pdo_pgsql_int.h76 extern int _pdo_pgsql_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, int errcode, const char *sqlstate, co…
80 #define pdo_pgsql_error_stmt_msg(stmt, e, sqlstate, msg) \ argument
81 _pdo_pgsql_error(stmt->dbh, stmt, e, sqlstate, msg, __FILE__, __LINE__)
H A Dpgsql_statement.c194 char *sqlstate = pdo_pgsql_sqlstate(S->result); in pgsql_stmt_execute() local
201 if (sqlstate && !strcmp(sqlstate, "42P05")) { in pgsql_stmt_execute()
211 pdo_pgsql_error_stmt(stmt, status, sqlstate); in pgsql_stmt_execute()
/PHP-8.2/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()
362 &packet->error_no, packet->sqlstate in php_mysqlnd_greet_read()
686 &packet->error_no, packet->sqlstate in php_mysqlnd_auth_response_read()
843 &packet->error_no, packet->sqlstate in php_mysqlnd_ok_read()
936 &packet->error_no, packet->sqlstate in php_mysqlnd_eof_read()
1349 strlcpy(info->sqlstate, sqlstate, sizeof(info->sqlstate)); in set_packet_error()
1715 packet->error_info.sqlstate in php_mysqlnd_rowp_read()
1817 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()
H A Dmysqlnd_connection.c103 memset(&info->sqlstate, 0, sizeof(info->sqlstate)); in MYSQLND_METHOD()
115 const char * const sqlstate, in MYSQLND_METHOD()
123 strlcpy(info->sqlstate, sqlstate, sizeof(info->sqlstate)); in MYSQLND_METHOD()
127 strlcpy(error_for_the_list.sqlstate, sqlstate, sizeof(error_for_the_list.sqlstate)); in MYSQLND_METHOD()
887 MYSQLND_METHOD(mysqlnd_conn_data, sqlstate)(const MYSQLND_CONN_DATA * const conn) argument
889 return conn->error_info->sqlstate[0] ? conn->error_info->sqlstate:MYSQLND_SQLSTATE_NULL;
1969 MYSQLND_METHOD(mysqlnd_conn_data, sqlstate),
/PHP-8.2/ext/mysqli/tests/
H A Dmysqli_class_mysqli_stmt_interface.phpt125 assert(mysqli_stmt_sqlstate($stmt) === $stmt->sqlstate);
126 printf("stmt->sqlstate = '%s'\n", $stmt->sqlstate);
152 sqlstate
170 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"]=>
H A Dmysqli_get_warnings.phpt58 … if ((!is_string($warning->sqlstate)) || ('' == $warning->sqlstate)) /* NULL or not there at all */
59 …("[012] Expecting string/not empty, got %s/%s\n", gettype($warning->sqlstate), $warning->sqlstate);
H A D057.phpt97 ["sqlstate"]=>
/PHP-8.2/ext/pdo_mysql/tests/
H A Dpdo_mysql_prepare_emulated.phpt29 if (isset($error_info['prepare']['sqlstate']) &&
30 ($error_info['prepare']['sqlstate'] !== $tmp[0])) {
32 $offset, $error_info['prepare']['sqlstate'], $tmp[0]);
61 if (isset($error_info['execute']['sqlstate']) &&
62 ($error_info['execute']['sqlstate'] !== $tmp[0])) {
64 $offset, $error_info['execute']['sqlstate'], $tmp[0]);
94 prepex(3, $db, '', [], ['execute' => ['sqlstate' => '42000']]);
137 $params, array('execute' => array('sqlstate' => 'HY093')));
177 array('execute' => array('sqlstate' => '42000', 'mysql' => 1064)));
231 array('test'), array('execute' => array('sqlstate' => 'HY093')));
[all …]
H A Dpdo_mysql_prepare_native.phpt28 if (isset($error_info['prepare']['sqlstate']) &&
29 ($error_info['prepare']['sqlstate'] !== $tmp[0])) {
31 $offset, $error_info['prepare']['sqlstate'], $tmp[0]);
70 if (isset($error_info['execute']['sqlstate']) &&
71 ($error_info['execute']['sqlstate'] !== $tmp[0])) {
73 $offset, $error_info['execute']['sqlstate'], $tmp[0]);
104 prepex(3, $db, '', [], ['prepare' => ['sqlstate' => '42000']]);
148 $params, array('execute' => array('sqlstate' => 'HY093')));
233 $params, array('execute' => array('sqlstate' => 'HY093')));
297 array('execute' => array('sqlstate' => '42000', 'mysql' => 1064)));
/PHP-8.2/ext/pdo_dblib/
H A Dpdo_dblib.c118 strcpy(einfo->sqlstate, state); in ZEND_GET_MODULE()
170 dblib_globals->err.sqlstate = dblib_globals->sqlstate; in PHP_GINIT_FUNCTION()
H A Dphp_pdo_dblib_int.h112 char *sqlstate; member
143 char sqlstate[6];
H A Ddblib_driver.c104 S->err.sqlstate = stmt->error_code; in dblib_handle_preparer()
489 H->err.sqlstate = dbh->error_code; in pdo_dblib_handle_factory()
620 DBLIB_G(err).sqlstate, in pdo_dblib_handle_factory()

Completed in 94 milliseconds

12