/PHP-5.4/ext/mysqli/ |
H A D | mysqli_exception.c | 39 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 D | mysqli_report.c | 30 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 D | mysqli_warning.c | 47 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 D | mysqli_priv.h | 77 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 D | mysqlnd_priv.h | 132 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 D | mysqlnd_wireprotocol.h | 84 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 D | mysqlnd_auth.c | 134 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 D | mysqlnd_wireprotocol.c | 220 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 D | mysqli_class_mysqli_properties_no_conn.phpt | 66 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 D | mysqli_class_mysqli_stmt_interface.phpt | 118 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 D | mysqli_class_mysqli_warning.phpt | 81 assert('' === $warning->sqlstate); 82 printf("warning->sqlstate= '%s'\n", $warning->sqlstate); 126 warning->sqlstate= ''
|
H A D | bug34810.phpt | 34 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 D | bug33090.phpt | 18 printf("%s\n", $link->sqlstate);
|
H A D | 072.phpt | 22 var_dump($w->sqlstate);
|
H A D | mysqli_class_mysqli_interface.phpt | 118 "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 D | mysqli_class_mysqli_warning_reflection.phpt | 106 Inspecting property 'sqlstate' 115 Default property 'sqlstate'
|
H A D | mysqli_get_warnings.phpt | 59 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 D | mysqli_kill.phpt | 108 [%u|b%"sqlstate"]=> 128 [%u|b%"sqlstate"]=>
|
/PHP-5.4/ext/pdo_dblib/ |
H A D | pdo_dblib.c | 129 strcpy(einfo->sqlstate, state); in ZEND_GET_MODULE() 169 dblib_globals->err.sqlstate = dblib_globals->sqlstate; in PHP_GINIT_FUNCTION()
|
H A D | php_pdo_dblib_int.h | 107 char *sqlstate; member 131 char sqlstate[6];
|
H A D | dblib_driver.c | 103 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 D | pdo_mysql_prepare_emulated.phpt | 27 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 D | pdo_mysql_prepare_native.phpt | 27 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 D | php_pdo_pgsql_int.h | 86 extern int _pdo_pgsql_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, int errcode, const char *sqlstate, co…
|
H A D | pgsql_statement.c | 180 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()
|