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 = mysqlnd_command_get_methods(); 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()
202 stmt = ret->data = mnd_ecalloc(1, sizeof(MYSQLND_STMT_DATA)); in MYSQLND_METHOD()
255 pfc->data = (MYSQLND_PFC_DATA*)((char*)pfc + pfc_alloc_size); in MYSQLND_METHOD()
256 pfc->persistent = pfc->data->persistent = persistent; in MYSQLND_METHOD()
257 pfc->data->m = *mysqlnd_pfc_get_methods(); in MYSQLND_METHOD()
259 if (PASS != pfc->data->m.init(pfc, stats, error_info)) { in MYSQLND_METHOD()
260 pfc->data->m.dtor(pfc, stats, error_info); in MYSQLND_METHOD()
280 vio->data = (MYSQLND_VIO_DATA*)((char*)vio + vio_alloc_size); in MYSQLND_METHOD()
281 vio->persistent = vio->data->persistent = persistent; in MYSQLND_METHOD()
282 vio->data->m = *mysqlnd_vio_get_methods(); in MYSQLND_METHOD()
284 if (PASS != vio->data->m.init(vio, stats, error_info)) { in MYSQLND_METHOD()
285 vio->data->m.dtor(vio, stats, error_info); in MYSQLND_METHOD()