Lines Matching refs:ret
172 enum_func_status ret; in mysqlnd_query_read_result_set_header() local
180 ret = FAIL; in mysqlnd_query_read_result_set_header()
185 if (FAIL == (ret = PACKET_READ(conn, &rset_header))) { in mysqlnd_query_read_result_set_header()
208 ret = FAIL; in mysqlnd_query_read_result_set_header()
223 ret = mysqlnd_handle_local_infile(conn, rset_header.info_or_local_file.s, &is_warning); in mysqlnd_query_read_result_set_header()
224 …SET_CONNECTION_STATE(&conn->state, (ret == PASS || is_warning == TRUE)? CONN_READY:CONN_QUIT_SENT… in mysqlnd_query_read_result_set_header()
244 ret = PASS; in mysqlnd_query_read_result_set_header()
296 ret = FAIL; in mysqlnd_query_read_result_set_header()
300 if (FAIL == (ret = result->m.read_result_metadata(result, conn))) { in mysqlnd_query_read_result_set_header()
312 if (FAIL == (ret = PACKET_READ(conn, &fields_eof))) { in mysqlnd_query_read_result_set_header()
354 DBG_INF(ret == PASS? "PASS":"FAIL"); in mysqlnd_query_read_result_set_header()
355 DBG_RETURN(ret); in mysqlnd_query_read_result_set_header()
396 const size_t * ret; in MYSQLND_METHOD() local
398 ret = result->stored_data && result->stored_data->m.fetch_lengths ? in MYSQLND_METHOD()
404 DBG_RETURN(ret); in MYSQLND_METHOD()
413 enum_func_status ret; in MYSQLND_METHOD() local
439 if (PASS == (ret = PACKET_READ(conn, row_packet)) && !row_packet->eof) { in MYSQLND_METHOD()
470 } else if (ret == FAIL) { in MYSQLND_METHOD()
504 DBG_INF_FMT("ret=%s fetched=%u", ret == PASS? "PASS":"FAIL", *fetched_anything); in MYSQLND_METHOD()
505 DBG_RETURN(ret); in MYSQLND_METHOD()
626 enum_func_status ret; in MYSQLND_METHOD() local
634 ret = FAIL; in MYSQLND_METHOD()
648 while (FAIL != (ret = PACKET_READ(conn, &row_packet)) && !row_packet.eof) { in MYSQLND_METHOD()
668 ret = FAIL; in MYSQLND_METHOD()
699 if (ret == FAIL) { in MYSQLND_METHOD()
711 ret = FAIL; in MYSQLND_METHOD()
723 if (ret == FAIL) { in MYSQLND_METHOD()
730 ret == PASS? "PASS":"FAIL", in MYSQLND_METHOD()
738 DBG_RETURN(ret); in MYSQLND_METHOD()
749 enum_func_status ret; in MYSQLND_METHOD() local
764 ret = result->m.store_result_fetch_data(conn, result, result->meta, row_buffers, stmt != NULL); in MYSQLND_METHOD()
766 if (FAIL == ret) { in MYSQLND_METHOD()
1035 MYSQLND_ROW_C ret = NULL; in MYSQLND_METHOD() local
1043 ret = mnd_emalloc(field_count * sizeof(char *)); in MYSQLND_METHOD()
1048 ret[i] = Z_STRVAL_P(data); in MYSQLND_METHOD()
1050 ret[i] = NULL; in MYSQLND_METHOD()
1055 DBG_RETURN(ret); in MYSQLND_METHOD()
1115 MYSQLND_RES * ret; in mysqlnd_result_init() local
1124 ret = pool->get_chunk(pool, alloc_size); in mysqlnd_result_init()
1125 memset(ret, 0, alloc_size); in mysqlnd_result_init()
1127 ret->row_data = pool->get_chunk(pool, field_count * sizeof(zval)); in mysqlnd_result_init()
1128 ret->free_row_data = 0; in mysqlnd_result_init()
1130 ret->memory_pool = pool; in mysqlnd_result_init()
1131 ret->field_count = field_count; in mysqlnd_result_init()
1132 ret->m = *mysqlnd_result_get_methods(); in mysqlnd_result_init()
1136 DBG_RETURN(ret); in mysqlnd_result_init()
1147 MYSQLND_RES_UNBUFFERED * ret; in mysqlnd_result_unbuffered_init() local
1151 ret = pool->get_chunk(pool, alloc_size); in mysqlnd_result_unbuffered_init()
1152 memset(ret, 0, alloc_size); in mysqlnd_result_unbuffered_init()
1154 ret->result_set_memory_pool = pool; in mysqlnd_result_unbuffered_init()
1155 ret->field_count = field_count; in mysqlnd_result_unbuffered_init()
1156 ret->stmt = stmt; in mysqlnd_result_unbuffered_init()
1158 ret->m = *mysqlnd_result_unbuffered_get_methods(); in mysqlnd_result_unbuffered_init()
1161 ret->m.row_decoder = php_mysqlnd_rowp_read_binary_protocol; in mysqlnd_result_unbuffered_init()
1162 ret->m.fetch_lengths = NULL; /* makes no sense */ in mysqlnd_result_unbuffered_init()
1163 ret->lengths = NULL; in mysqlnd_result_unbuffered_init()
1165 ret->m.row_decoder = php_mysqlnd_rowp_read_text_protocol; in mysqlnd_result_unbuffered_init()
1167 ret->lengths = pool->get_chunk(pool, field_count * sizeof(size_t)); in mysqlnd_result_unbuffered_init()
1168 memset(ret->lengths, 0, field_count * sizeof(size_t)); in mysqlnd_result_unbuffered_init()
1171 DBG_RETURN(ret); in mysqlnd_result_unbuffered_init()
1182 MYSQLND_RES_BUFFERED * ret; in mysqlnd_result_buffered_init() local
1186 ret = pool->get_chunk(pool, alloc_size); in mysqlnd_result_buffered_init()
1187 memset(ret, 0, alloc_size); in mysqlnd_result_buffered_init()
1189 mysqlnd_error_info_init(&ret->error_info, /* persistent */ 0); in mysqlnd_result_buffered_init()
1191 ret->result_set_memory_pool = pool; in mysqlnd_result_buffered_init()
1192 ret->field_count= field_count; in mysqlnd_result_buffered_init()
1193 ret->stmt = stmt; in mysqlnd_result_buffered_init()
1194 ret->m = *mysqlnd_result_buffered_get_methods(); in mysqlnd_result_buffered_init()
1197 ret->m.row_decoder = php_mysqlnd_rowp_read_binary_protocol; in mysqlnd_result_buffered_init()
1198 ret->m.fetch_lengths = NULL; /* makes no sense */ in mysqlnd_result_buffered_init()
1199 ret->lengths = NULL; in mysqlnd_result_buffered_init()
1201 ret->m.row_decoder = php_mysqlnd_rowp_read_text_protocol; in mysqlnd_result_buffered_init()
1203 ret->lengths = pool->get_chunk(pool, field_count * sizeof(size_t)); in mysqlnd_result_buffered_init()
1204 memset(ret->lengths, 0, field_count * sizeof(size_t)); in mysqlnd_result_buffered_init()
1207 DBG_RETURN(ret); in mysqlnd_result_buffered_init()