/php-src/ext/mysqli/ |
H A D | mysqli_exception.c | 28 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 D | mysqli_report.c | 24 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 D | mysqli_warning.c | 35 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 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, ...);
|
/php-src/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_prepare_emulated_myisam_index.phpt | 28 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 D | pdo_mysql_prepare_emulated_anonymous_placeholders.phpt | 26 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 D | pdo_mysql_prepare_emulated_myisam.phpt | 26 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 D | pdo_mysql_prepare_native.phpt | 25 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 D | pdo_mysql_prepare_native_myisam_index.phpt | 25 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 D | pdo_mysql_prepare_emulated.phpt | 26 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 D | pdo_mysql_prepare_native_myisam.phpt | 25 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 D | pdo_mysql_prepare_native_anonymous_placeholder.phpt | 25 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 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() 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 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()
|
/php-src/ext/pdo_pgsql/ |
H A D | php_pdo_pgsql_int.h | 87 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 D | mysqli_class_mysqli_stmt_interface.phpt | 124 assert(mysqli_stmt_sqlstate($stmt) === $stmt->sqlstate); 125 printf("stmt->sqlstate = '%s'\n", $stmt->sqlstate); 151 sqlstate 169 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"]=>
|
/php-src/ext/pdo_dblib/ |
H A D | pdo_dblib.c | 121 strcpy(einfo->sqlstate, state); in ZEND_GET_MODULE() 173 dblib_globals->err.sqlstate = dblib_globals->sqlstate; in PHP_GINIT_FUNCTION()
|
H A D | php_pdo_dblib_int.h | 114 char *sqlstate; member 145 char sqlstate[6];
|