Lines Matching refs:data
104 MYSQLND_CONN_DATA * data; in MYSQLND_METHOD() local
112 new_object->data = mnd_pecalloc(1, alloc_size_ret_data, persistent); in MYSQLND_METHOD()
113 if (!new_object->data) { in MYSQLND_METHOD()
119 data = new_object->data; in MYSQLND_METHOD()
121 if (FAIL == mysqlnd_error_info_init(&data->error_info_impl, persistent)) { in MYSQLND_METHOD()
125 data->error_info = &data->error_info_impl; in MYSQLND_METHOD()
127 data->options = &(data->options_impl); in MYSQLND_METHOD()
129 mysqlnd_upsert_status_init(&data->upsert_status_impl); in MYSQLND_METHOD()
130 data->upsert_status = &(data->upsert_status_impl); in MYSQLND_METHOD()
131 UPSERT_STATUS_SET_AFFECTED_ROWS_TO_ERROR(data->upsert_status); in MYSQLND_METHOD()
133 data->persistent = persistent; in MYSQLND_METHOD()
134 data->m = mysqlnd_conn_data_get_methods(); in MYSQLND_METHOD()
135 data->object_factory = *factory; in MYSQLND_METHOD()
137 mysqlnd_connection_state_init(&data->state); in MYSQLND_METHOD()
139 data->m->get_reference(data); in MYSQLND_METHOD()
141 mysqlnd_stats_init(&data->stats, STAT_LAST, persistent); in MYSQLND_METHOD()
143 data->protocol_frame_codec = mysqlnd_pfc_init(persistent, factory, data->stats, data->error_info); in MYSQLND_METHOD()
144 data->vio = mysqlnd_vio_init(persistent, factory, data->stats, data->error_info); in MYSQLND_METHOD()
145 data->payload_decoder_factory = mysqlnd_protocol_payload_decoder_factory_init(data, persistent); in MYSQLND_METHOD()
146 data->command_factory = mysqlnd_command_factory_get(); in MYSQLND_METHOD()
148 …if (!data->protocol_frame_codec || !data->vio || !data->payload_decoder_factory || !data->command_… in MYSQLND_METHOD()
167 if (!to_be_cloned || !to_be_cloned->data) { in MYSQLND_METHOD()
177 new_object->data = to_be_cloned->data->m->get_reference(to_be_cloned->data); in MYSQLND_METHOD()
178 if (!new_object->data) { in MYSQLND_METHOD()
203 stmt = ret->data = mnd_pecalloc(1, sizeof(MYSQLND_STMT_DATA), persistent); in MYSQLND_METHOD()
258 pfc->data = pfc_data; in MYSQLND_METHOD()
259 pfc->persistent = pfc->data->persistent = persistent; in MYSQLND_METHOD()
260 pfc->data->m = *mysqlnd_pfc_get_methods(); in MYSQLND_METHOD()
262 if (PASS != pfc->data->m.init(pfc, stats, error_info)) { in MYSQLND_METHOD()
263 pfc->data->m.dtor(pfc, stats, error_info); in MYSQLND_METHOD()
293 vio->data = vio_data; in MYSQLND_METHOD()
294 vio->persistent = vio->data->persistent = persistent; in MYSQLND_METHOD()
295 vio->data->m = *mysqlnd_vio_get_methods(); in MYSQLND_METHOD()
297 if (PASS != vio->data->m.init(vio, stats, error_info)) { in MYSQLND_METHOD()
298 vio->data->m.dtor(vio, stats, error_info); in MYSQLND_METHOD()