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, bool * is_warnin… 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()
152 …bool is_local_infile_enabled = (conn->options->flags & CLIENT_LOCAL_FILES) == CLIENT_LOCAL_FILE… in mysqlnd_handle_local_infile()
153 const char* local_infile_directory = conn->options->local_infile_directory; in mysqlnd_handle_local_infile()
163 SET_CLIENT_ERROR(conn->error_info, CR_LOAD_DATA_LOCAL_INFILE_REJECTED, UNKNOWN_SQLSTATE, in mysqlnd_handle_local_infile()
178 …SET_CLIENT_ERROR(conn->error_info, CR_LOAD_DATA_LOCAL_INFILE_REJECTED, UNKNOWN_SQLSTATE, "cannot o… in mysqlnd_handle_local_infile()
190 SET_CLIENT_ERROR(conn->error_info, CR_LOAD_DATA_LOCAL_INFILE_REJECTED, UNKNOWN_SQLSTATE, in mysqlnd_handle_local_infile()
198 ret = net->data->m.send(net, vio, empty_packet, 0, conn->stats, conn->error_info); in mysqlnd_handle_local_infile()
203 infile = conn->infile; in mysqlnd_handle_local_infile()
211 char tmp_buf[sizeof(conn->error_info->error)]; in mysqlnd_handle_local_infile()
216 SET_CLIENT_ERROR(conn->error_info, tmp_error_no, UNKNOWN_SQLSTATE, tmp_buf); in mysqlnd_handle_local_infile()
218 ret = net->data->m.send(net, vio, empty_packet, 0, conn->stats, conn->error_info); in mysqlnd_handle_local_infile()
224 if ((ret = net->data->m.send(net, vio, buf, bufsize, conn->stats, conn->error_info)) == 0) { in mysqlnd_handle_local_infile()
226 SET_CLIENT_ERROR(conn->error_info, CR_SERVER_LOST, UNKNOWN_SQLSTATE, lost_conn); in mysqlnd_handle_local_infile()
232 if ((ret = net->data->m.send(net, vio, empty_packet, 0, conn->stats, conn->error_info)) == 0) { in mysqlnd_handle_local_infile()
233 SET_CLIENT_ERROR(conn->error_info, CR_SERVER_LOST, UNKNOWN_SQLSTATE, lost_conn); in mysqlnd_handle_local_infile()
239 char tmp_buf[sizeof(conn->error_info->error)]; in mysqlnd_handle_local_infile()
244 SET_CLIENT_ERROR(conn->error_info, tmp_error_no, UNKNOWN_SQLSTATE, tmp_buf); in mysqlnd_handle_local_infile()
252 if (FAIL == conn->payload_decoder_factory->m.send_command_handle_response( in mysqlnd_handle_local_infile()
253 conn->payload_decoder_factory, in mysqlnd_handle_local_infile()
255 conn->error_info, in mysqlnd_handle_local_infile()
256 conn->upsert_status, in mysqlnd_handle_local_infile()
257 &conn->last_message)) { in mysqlnd_handle_local_infile()
261 (*conn->infile.local_infile_end)(info); in mysqlnd_handle_local_infile()