Lines Matching refs:data

102 	MYSQLND_CONN_DATA * data;  in MYSQLND_METHOD()  local
110 new_object->data = mnd_pecalloc(1, alloc_size_ret_data, persistent); in MYSQLND_METHOD()
111 if (!new_object->data) { in MYSQLND_METHOD()
117 data = new_object->data; in MYSQLND_METHOD()
119 mysqlnd_error_info_init(&data->error_info_impl, persistent); in MYSQLND_METHOD()
120 data->error_info = &data->error_info_impl; in MYSQLND_METHOD()
122 data->options = &(data->options_impl); in MYSQLND_METHOD()
124 mysqlnd_upsert_status_init(&data->upsert_status_impl); in MYSQLND_METHOD()
125 data->upsert_status = &(data->upsert_status_impl); in MYSQLND_METHOD()
126 UPSERT_STATUS_SET_AFFECTED_ROWS_TO_ERROR(data->upsert_status); in MYSQLND_METHOD()
128 data->persistent = persistent; in MYSQLND_METHOD()
129 data->m = mysqlnd_conn_data_get_methods(); in MYSQLND_METHOD()
130 data->object_factory = *factory; in MYSQLND_METHOD()
132 mysqlnd_connection_state_init(&data->state); in MYSQLND_METHOD()
134 data->m->get_reference(data); in MYSQLND_METHOD()
136 mysqlnd_stats_init(&data->stats, STAT_LAST, persistent); in MYSQLND_METHOD()
138 data->protocol_frame_codec = mysqlnd_pfc_init(persistent, factory, data->stats, data->error_info); in MYSQLND_METHOD()
139 data->vio = mysqlnd_vio_init(persistent, factory, data->stats, data->error_info); in MYSQLND_METHOD()
140 data->payload_decoder_factory = mysqlnd_protocol_payload_decoder_factory_init(data, persistent); in MYSQLND_METHOD()
141 data->command = mysqlnd_command_get_methods(); in MYSQLND_METHOD()
143 …if (!data->protocol_frame_codec || !data->vio || !data->payload_decoder_factory || !data->command)… in MYSQLND_METHOD()
162 if (!to_be_cloned || !to_be_cloned->data) { in MYSQLND_METHOD()
172 new_object->data = to_be_cloned->data->m->get_reference(to_be_cloned->data); in MYSQLND_METHOD()
173 if (!new_object->data) { in MYSQLND_METHOD()
193 stmt = ret->data = mnd_ecalloc(1, sizeof(MYSQLND_STMT_DATA)); in MYSQLND_METHOD()
229 pfc->data = (MYSQLND_PFC_DATA*)((char*)pfc + pfc_alloc_size); in MYSQLND_METHOD()
230 pfc->persistent = pfc->data->persistent = persistent; in MYSQLND_METHOD()
231 pfc->data->m = *mysqlnd_pfc_get_methods(); in MYSQLND_METHOD()
233 pfc->data->m.init(pfc, stats, error_info); in MYSQLND_METHOD()
251 vio->data = (MYSQLND_VIO_DATA*)((char*)vio + vio_alloc_size); in MYSQLND_METHOD()
252 vio->persistent = vio->data->persistent = persistent; in MYSQLND_METHOD()
253 vio->data->m = *mysqlnd_vio_get_methods(); in MYSQLND_METHOD()
255 vio->data->m.init(vio, stats, error_info); in MYSQLND_METHOD()