/PHP-8.2/ext/mysqli/ |
H A D | mysqli_exception.c | 30 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 D | mysqli_report.c | 26 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 D | mysqli_warning.c | 44 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 D | mysqli_priv.h | 59 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 D | mysqli.stub.php | 723 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 D | php_pdo_pgsql_int.h | 76 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 D | pgsql_statement.c | 194 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 D | mysqlnd_wireprotocol.h | 75 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 D | mysqlnd_wireprotocol.c | 200 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 D | mysqlnd_auth.c | 344 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 D | mysqlnd_connection.c | 103 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 D | mysqli_class_mysqli_stmt_interface.phpt | 125 assert(mysqli_stmt_sqlstate($stmt) === $stmt->sqlstate); 126 printf("stmt->sqlstate = '%s'\n", $stmt->sqlstate); 152 sqlstate 170 stmt->sqlstate = '00000'
|
H A D | bug34810.phpt | 35 if ("HY000" != $warning->sqlstate) 36 printf("[003] Wrong sql state code: %s\n", $warning->sqlstate); 94 ["sqlstate"]=>
|
H A D | gh7746.phpt | 2 Bug #GH-7746 mysqli_sql_exception->sqlstate is inaccessible
|
H A D | bug33090.phpt | 19 printf("%s\n", $link->sqlstate);
|
H A D | 072.phpt | 23 var_dump($w->sqlstate);
|
H A D | mysqli_class_mysqli_interface.phpt | 109 "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 D | mysqli_kill.phpt | 101 ["sqlstate"]=> 119 ["sqlstate"]=>
|
H A D | mysqli_get_warnings.phpt | 58 … 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 D | 057.phpt | 97 ["sqlstate"]=>
|
/PHP-8.2/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_prepare_emulated.phpt | 29 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 D | pdo_mysql_prepare_native.phpt | 28 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 D | pdo_dblib.c | 118 strcpy(einfo->sqlstate, state); in ZEND_GET_MODULE() 170 dblib_globals->err.sqlstate = dblib_globals->sqlstate; in PHP_GINIT_FUNCTION()
|
H A D | php_pdo_dblib_int.h | 112 char *sqlstate; member 143 char sqlstate[6];
|
H A D | dblib_driver.c | 104 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()
|