Lines Matching refs:error_info
243 MYSQLND_STATS * conn_stats, MYSQLND_ERROR_INFO * error_info) in mysqlnd_read_header() argument
249 if (FAIL == pfc->data->m.receive(pfc, vio, buffer, MYSQLND_HEADER_SIZE, conn_stats, error_info)) { in mysqlnd_read_header()
273 …if ((PASS == pfc->data->m.receive(pfc, vio, buf, header->size, conn_stats, error_info)) && buf[0] … in mysqlnd_read_header()
275 error_info->error, sizeof(error_info->error), in mysqlnd_read_header()
276 &error_info->error_no, error_info->sqlstate in mysqlnd_read_header()
300 MYSQLND_ERROR_INFO * error_info, in mysqlnd_read_packet_header_and_body() argument
308 if (FAIL == mysqlnd_read_header(pfc, vio, packet_header, stats, error_info)) { in mysqlnd_read_packet_header_and_body()
310 if (error_info->error_no == 0) { in mysqlnd_read_packet_header_and_body()
311 SET_CLIENT_ERROR(error_info, CR_SERVER_GONE_ERROR, UNKNOWN_SQLSTATE, mysqlnd_server_gone); in mysqlnd_read_packet_header_and_body()
319 …SET_CLIENT_ERROR(error_info, CR_INVALID_BUFFER_USE, UNKNOWN_SQLSTATE, "Packet buffer wasn't big en… in mysqlnd_read_packet_header_and_body()
322 if (FAIL == pfc->data->m.receive(pfc, vio, buf, packet_header->size, stats, error_info)) { in mysqlnd_read_packet_header_and_body()
324 SET_CLIENT_ERROR(error_info, CR_SERVER_GONE_ERROR, UNKNOWN_SQLSTATE, mysqlnd_server_gone); in mysqlnd_read_packet_header_and_body()
343 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_greet_read() local
355 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_greet_read()
510 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_auth_write() local
544 SET_CLIENT_ERROR(error_info, CR_UNKNOWN_ERROR, UNKNOWN_SQLSTATE, msg); in php_mysqlnd_auth_write()
637 …_t sent = pfc->data->m.send(pfc, vio, buffer, p - buffer - MYSQLND_HEADER_SIZE, stats, error_info); in php_mysqlnd_auth_write()
652 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_auth_response_read() local
664 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_auth_response_read()
766 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_change_auth_response_write() local
786 …_t sent = pfc->data->m.send(pfc, vio, buffer, p - buffer - MYSQLND_HEADER_SIZE, stats, error_info); in php_mysqlnd_change_auth_response_write()
804 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_ok_read() local
817 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_ok_read()
898 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_eof_read() local
910 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_eof_read()
966 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_cmd_write() local
978 pfc->data->m.reset(pfc, stats, error_info); in php_mysqlnd_cmd_write()
990 sent = pfc->data->m.send(pfc, vio, buffer, 1, stats, error_info); in php_mysqlnd_cmd_write()
1005 sent = pfc->data->m.send(pfc, vio, tmp, tmp_len - MYSQLND_HEADER_SIZE, stats, error_info); in php_mysqlnd_cmd_write()
1025 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_rset_header_read() local
1039 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_rset_header_read()
1053 packet->error_info.error, sizeof(packet->error_info.error), in php_mysqlnd_rset_header_read()
1054 &packet->error_info.error_no, packet->error_info.sqlstate in php_mysqlnd_rset_header_read()
1154 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_rset_field_read() local
1170 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_rset_field_read()
1184 packet->error_info.error, sizeof(packet->error_info.error), in php_mysqlnd_rset_field_read()
1185 &packet->error_info.error_no, packet->error_info.sqlstate in php_mysqlnd_rset_field_read()
1187 DBG_ERR_FMT("Server error : (%u) %s", packet->error_info.error_no, packet->error_info.error); in php_mysqlnd_rset_field_read()
1345 MYSQLND_ERROR_INFO * error_info, in php_mysqlnd_read_row_ex() argument
1373 if (UNEXPECTED(FAIL == mysqlnd_read_header(pfc, vio, &header, stats, error_info))) { in php_mysqlnd_read_row_ex()
1376 set_packet_error(error_info, CR_SERVER_GONE_ERROR, UNKNOWN_SQLSTATE, mysqlnd_server_gone); in php_mysqlnd_read_row_ex()
1386 …if (UNEXPECTED(PASS != (ret = pfc->data->m.receive(pfc, vio, p, header.size, stats, error_info))))… in php_mysqlnd_read_row_ex()
1389 set_packet_error(error_info, CR_SERVER_GONE_ERROR, UNKNOWN_SQLSTATE, mysqlnd_server_gone); in php_mysqlnd_read_row_ex()
1393 if (FAIL == mysqlnd_read_header(pfc, vio, &header, stats, error_info)) { in php_mysqlnd_read_row_ex()
1407 …if (UNEXPECTED(PASS != (ret = pfc->data->m.receive(pfc, vio, p, header.size, stats, error_info))))… in php_mysqlnd_read_row_ex()
1410 set_packet_error(error_info, CR_SERVER_GONE_ERROR, UNKNOWN_SQLSTATE, mysqlnd_server_gone); in php_mysqlnd_read_row_ex()
1661 MYSQLND_ERROR_INFO * error_info = &packet->error_info; in php_mysqlnd_rowp_read() local
1671 ret = php_mysqlnd_read_row_ex(pfc, vio, stats, error_info, &conn->state, in php_mysqlnd_rowp_read()
1701 packet->error_info.error, in php_mysqlnd_rowp_read()
1702 sizeof(packet->error_info.error), in php_mysqlnd_rowp_read()
1703 &packet->error_info.error_no, in php_mysqlnd_rowp_read()
1704 packet->error_info.sqlstate in php_mysqlnd_rowp_read()
1734 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_stats_read() local
1744 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_stats_read()
1777 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_prepare_read() local
1791 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_prepare_read()
1803 packet->error_info.error, in php_mysqlnd_prepare_read()
1804 sizeof(packet->error_info.error), in php_mysqlnd_prepare_read()
1805 &packet->error_info.error_no, in php_mysqlnd_prepare_read()
1806 packet->error_info.sqlstate in php_mysqlnd_prepare_read()
1860 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_chg_user_read() local
1873 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_chg_user_read()
1895 packet->error_info.error, in php_mysqlnd_chg_user_read()
1896 sizeof(packet->error_info.error), in php_mysqlnd_chg_user_read()
1897 &packet->error_info.error_no, in php_mysqlnd_chg_user_read()
1898 packet->error_info.sqlstate in php_mysqlnd_chg_user_read()
1950 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_sha256_pk_request_write() local
1960 sent = pfc->data->m.send(pfc, vio, buffer, 1, stats, error_info); in php_mysqlnd_sha256_pk_request_write()
1972 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_sha256_pk_request_response_read() local
1985 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_sha256_pk_request_response_read()
2026 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_cached_sha2_result_write() local
2038 sent = pfc->data->m.send(pfc, vio, buffer, 1, stats, error_info); in php_mysqlnd_cached_sha2_result_write()
2043 sent = pfc->data->m.send(pfc, vio, buffer, packet->password_len, stats, error_info); in php_mysqlnd_cached_sha2_result_write()
2054 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_cached_sha2_result_read() local
2065 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_cached_sha2_result_read()
2408 MYSQLND_ERROR_INFO * error_info, in MYSQLND_METHOD()
2427 SET_CLIENT_ERROR(error_info, CR_SERVER_GONE_ERROR, UNKNOWN_SQLSTATE, mysqlnd_server_gone); in MYSQLND_METHOD()
2431 SET_CLIENT_ERROR(error_info, CR_COMMANDS_OUT_OF_SYNC, UNKNOWN_SQLSTATE, mysqlnd_out_of_sync); in MYSQLND_METHOD()
2437 SET_EMPTY_ERROR(error_info); in MYSQLND_METHOD()
2450 if (!silent && error_info->error_no != CR_SERVER_GONE_ERROR) { in MYSQLND_METHOD()
2469 MYSQLND_ERROR_INFO * const error_info, in MYSQLND_METHOD()
2480 if (error_info->error_no != CR_SERVER_GONE_ERROR) { in MYSQLND_METHOD()
2482 SET_CLIENT_ERROR(error_info, CR_MALFORMED_PACKET, UNKNOWN_SQLSTATE, "Malformed packet"); in MYSQLND_METHOD()
2489 SET_CLIENT_ERROR(error_info, ok_response.error_no, ok_response.sqlstate, ok_response.error); in MYSQLND_METHOD()
2526 MYSQLND_ERROR_INFO * const error_info, in MYSQLND_METHOD()
2538 SET_CLIENT_ERROR(error_info, CR_MALFORMED_PACKET, UNKNOWN_SQLSTATE, "Malformed packet"); in MYSQLND_METHOD()
2543 SET_CLIENT_ERROR(error_info, response.error_no, response.sqlstate, response.error); in MYSQLND_METHOD()
2547 SET_CLIENT_ERROR(error_info, CR_MALFORMED_PACKET, UNKNOWN_SQLSTATE, "Malformed packet"); in MYSQLND_METHOD()
2570 MYSQLND_ERROR_INFO * error_info, in MYSQLND_METHOD()
2582 …ret = payload_decoder_factory->m.send_command_handle_OK(payload_decoder_factory, error_info, upser… in MYSQLND_METHOD()
2585 …ret = payload_decoder_factory->m.send_command_handle_EOF(payload_decoder_factory, error_info, upse… in MYSQLND_METHOD()
2588 SET_CLIENT_ERROR(error_info, CR_MALFORMED_PACKET, UNKNOWN_SQLSTATE, "Malformed packet"); in MYSQLND_METHOD()
2592 if (!silent && error_info->error_no == CR_MALFORMED_PACKET) { in MYSQLND_METHOD()