Home
last modified time | relevance | path

Searched refs:sqlstate (Results 1 – 25 of 39) sorted by path

12

/PHP-5.5/ext/mysqli/
H A Dmysqli_api.c1908 char sqlstate[SQLSTATE_LENGTH+1]; local
1913 memcpy(sqlstate, mysql->mysql->net.sqlstate, SQLSTATE_LENGTH+1);
1924 memcpy(mysql->mysql->net.sqlstate, sqlstate, SQLSTATE_LENGTH+1);
H A Dmysqli_exception.c39 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 Dmysqli_nonapi.c443 add_assoc_string_ex(single_error, "sqlstate", sizeof("sqlstate"), message->sqlstate, 1);
487 add_assoc_string_ex(single_error, "sqlstate", sizeof("sqlstate"), message->sqlstate, 1);
548 strcpy(mysql->mysql->net.sqlstate, s_sqlstate);
H A Dmysqli_priv.h77 extern void php_mysqli_report_error(const char *sqlstate, int errorno, const char *error TSRMLS_DC);
79 extern void php_mysqli_throw_sql_exception(char *sqlstate, int errorno TSRMLS_DC, char *format, ...…
H A Dmysqli_prop.c219 add_assoc_string_ex(single_error, "sqlstate", sizeof("sqlstate"), message->sqlstate, 1); in link_error_list_read()
416 add_assoc_string_ex(single_error, "sqlstate", sizeof("sqlstate"), message->sqlstate, 1); in stmt_error_list_read()
H A Dmysqli_report.c30 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 Dmysqli_warning.c47 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 Dphp_mysqli_structs.h153 zval sqlstate; member
/PHP-5.5/ext/mysqli/tests/
H A D057.phpt97 [%u|b%"sqlstate"]=>
H A D072.phpt22 var_dump($w->sqlstate);
H A Dbug33090.phpt18 printf("%s\n", $link->sqlstate);
H A Dbug34810.phpt34 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 Dmysqli_class_mysqli_interface.phpt115 "sqlstate" => true,
206 assert(mysqli_sqlstate($link) === $mysqli->sqlstate);
207 printf("mysqli->sqlstate = '%s'/%s ('%s'/%s)\n",
208 $mysqli->sqlstate, gettype($mysqli->sqlstate),
298 mysqli->sqlstate = '00000'/%unicode|string% ('00000'/%unicode|string%)
H A Dmysqli_class_mysqli_properties_no_conn.phpt66 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 Dmysqli_class_mysqli_reflection.phpt1298 Inspecting property 'sqlstate'
1344 Default property 'sqlstate'
H A Dmysqli_class_mysqli_stmt_interface.phpt118 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 Dmysqli_class_mysqli_warning.phpt81 assert('' === $warning->sqlstate);
82 printf("warning->sqlstate= '%s'\n", $warning->sqlstate);
126 warning->sqlstate= ''
H A Dmysqli_class_mysqli_warning_reflection.phpt106 Inspecting property 'sqlstate'
115 Default property 'sqlstate'
H A Dmysqli_get_warnings.phpt59 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 Dmysqli_kill.phpt108 [%u|b%"sqlstate"]=>
128 [%u|b%"sqlstate"]=>
H A Dmysqli_real_connect.phpt210 [%u|b%"sqlstate"]=>
H A Dmysqli_stmt_get_warnings.phpt77 if ('' == $warning->sqlstate)
/PHP-5.5/ext/mysqlnd/
H A Dmysqlnd.c241 …SET_CLIENT_ERROR(*conn->error_info, ok_response->error_no, ok_response->sqlstate, ok_response->err… in MYSQLND_METHOD()
287 …SET_CLIENT_ERROR(*conn->error_info, ok_response->error_no, ok_response->sqlstate, ok_response->err… in MYSQLND_METHOD()
794 …SET_CLIENT_ERROR(*conn->error_info, greet_packet->error_no, greet_packet->sqlstate, greet_packet->… in MYSQLND_METHOD()
1572 MYSQLND_METHOD(mysqlnd_conn_data, sqlstate)(const MYSQLND_CONN_DATA * const conn TSRMLS_DC) argument
1574 return conn->error_info->sqlstate[0] ? conn->error_info->sqlstate:MYSQLND_SQLSTATE_NULL;
2975 MYSQLND_METHOD(mysqlnd_conn_data, sqlstate),
H A Dmysqlnd_auth.c133 if (auth_resp_packet->sqlstate[0]) { in mysqlnd_auth_handshake()
134 …strlcpy(conn->error_info->sqlstate, auth_resp_packet->sqlstate, sizeof(conn->error_info->sqlstate)… in mysqlnd_auth_handshake()
135 …DBG_ERR_FMT("ERROR:%u [SQLSTATE:%s] %s", auth_resp_packet->error_no, auth_resp_packet->sqlstate, a… in mysqlnd_auth_handshake()
H A Dmysqlnd_priv.h117 strlcpy((error_info).sqlstate, "00000", sizeof((error_info).sqlstate)); \
130 strlcpy((error_info).sqlstate, (b), sizeof((error_info).sqlstate)); \
136 strlcpy(error_for_the_list.sqlstate, (b), sizeof(error_for_the_list.sqlstate)); \
149 …SET_CLIENT_ERROR((error_info_to), (error_info_from).error_no, (error_info_from).sqlstate, (error_i…

Completed in 49 milliseconds

12