rem: if (_r) { return store_result(_h, _r); } else { return use_result(_h, _r); }
add: return store_result(_h, _r);
context: int db_query(db_con_t* _h, db_key_t* _k, db_op_t* _op,	     db_val_t* _v, db_key_t* _c, int _n, int _nc,	     db_key_t _o, db_res_t** _r){	int off;	if (!_h) {		LOG(L_ERR, "db_query(): Invalid parameter value\n");		return -1;	}	if (!_c) {		off = snprintf(sql_buf, SQL_BUF_LEN, "select * from %s ", CON_TABLE(_h));	} else {		off = snprintf(sql_buf, SQL_BUF_LEN, "select ");		off += print_columns(sql_buf + off, SQL_BUF_LEN - off, _c, _nc);		off += snprintf(sql_buf + off, SQL_BUF_LEN - off, "from %s ", CON_TABLE(_h));	}	if (_n) {		off += snprintf(sql_buf + off, SQL_BUF_LEN - off, "where ");		off += print_where(CON_CONNECTION(_h), sql_buf + off, SQL_BUF_LEN - off, _k, _op, _v, _n);	}	if (_o) {		off += snprintf(sql_buf + off, SQL_BUF_LEN - off, "order by %s", _o);	}	if (submit_query(_h, sql_buf) < 0) {		LOG(L_ERR, "submit_query(): Error while submitting query\n");		return -2;	}	if (_r) {		return store_result(_h, _r);	} else {		return use_result(_h, _r);	}}