Lines Matching refs:conn
125 mysqlnd_local_infile_default(MYSQLND_CONN_DATA * conn) in mysqlnd_local_infile_default() argument
127 conn->infile.local_infile_init = mysqlnd_local_infile_init; in mysqlnd_local_infile_default()
128 conn->infile.local_infile_read = mysqlnd_local_infile_read; in mysqlnd_local_infile_default()
129 conn->infile.local_infile_error = mysqlnd_local_infile_error; in mysqlnd_local_infile_default()
130 conn->infile.local_infile_end = mysqlnd_local_infile_end; in mysqlnd_local_infile_default()
140 mysqlnd_handle_local_infile(MYSQLND_CONN_DATA * conn, const char * const filename, zend_bool * is_w… in mysqlnd_handle_local_infile() argument
150 MYSQLND_PFC * net = conn->protocol_frame_codec; in mysqlnd_handle_local_infile()
151 MYSQLND_VIO * vio = conn->vio; in mysqlnd_handle_local_infile()
155 if (!(conn->options->flags & CLIENT_LOCAL_FILES)) { in mysqlnd_handle_local_infile()
157 SET_CLIENT_ERROR(conn->error_info, CR_UNKNOWN_ERROR, UNKNOWN_SQLSTATE, in mysqlnd_handle_local_infile()
160 ret = net->data->m.send(net, vio, empty_packet, 0, conn->stats, conn->error_info); in mysqlnd_handle_local_infile()
165 infile = conn->infile; in mysqlnd_handle_local_infile()
173 char tmp_buf[sizeof(conn->error_info->error)]; in mysqlnd_handle_local_infile()
178 SET_CLIENT_ERROR(conn->error_info, tmp_error_no, UNKNOWN_SQLSTATE, tmp_buf); in mysqlnd_handle_local_infile()
180 ret = net->data->m.send(net, vio, empty_packet, 0, conn->stats, conn->error_info); in mysqlnd_handle_local_infile()
186 if ((ret = net->data->m.send(net, vio, buf, bufsize, conn->stats, conn->error_info)) == 0) { in mysqlnd_handle_local_infile()
188 SET_CLIENT_ERROR(conn->error_info, CR_SERVER_LOST, UNKNOWN_SQLSTATE, lost_conn); in mysqlnd_handle_local_infile()
194 if ((ret = net->data->m.send(net, vio, empty_packet, 0, conn->stats, conn->error_info)) == 0) { in mysqlnd_handle_local_infile()
195 SET_CLIENT_ERROR(conn->error_info, CR_SERVER_LOST, UNKNOWN_SQLSTATE, lost_conn); in mysqlnd_handle_local_infile()
201 char tmp_buf[sizeof(conn->error_info->error)]; in mysqlnd_handle_local_infile()
206 SET_CLIENT_ERROR(conn->error_info, tmp_error_no, UNKNOWN_SQLSTATE, tmp_buf); in mysqlnd_handle_local_infile()
214 if (FAIL == conn->payload_decoder_factory->m.send_command_handle_response( in mysqlnd_handle_local_infile()
215 conn->payload_decoder_factory, in mysqlnd_handle_local_infile()
217 conn->error_info, in mysqlnd_handle_local_infile()
218 conn->upsert_status, in mysqlnd_handle_local_infile()
219 &conn->last_message)) { in mysqlnd_handle_local_infile()
223 (*conn->infile.local_infile_end)(info); in mysqlnd_handle_local_infile()