rem: rv = get_result(_h, _r); free_query(_h); commit_transaction(_h); return(rv);
add: do { ret = submit_query(res, con, query, 0); if (ret < 0) return -1;                       if (ret > 0) {                                if (reconnect(con) < 0) return -1;    else continue;                        } } while(ret != 0);  if (res && (convert_result(*res, con) < 0)) { free_result(*res); return -1; } return 0;
context: int db_raw_query(db_con_t* _h, char* _s, db_res_t** _r){	int rv;	if(begin_transaction(_h, sql_buf)) return(-1);	if (submit_query(_h, _s) < 0) {		LOG(L_ERR, "db_raw_query(): Error while submitting query\n");		return -2;	}	rv = get_result(_h, _r);	free_query(_h);	commit_transaction(_h);	return(rv);}