library/src/blockclass/BP-BlockClass.cc
// Destroy the where clauses if they exist
Destroy the where clauses if they exist
Destroy the where clauses if they exist
BP_ERROR_T Block::destroyWebResultStackWhereClauses()
{
	if(this->results_in_id_clause)
	{
		tq_free(this->tq, this->results_in_id_clause);
		this->results_in_id_clause = NULL;
		this->id_n = 0;
	}
	if(this->results_in_assessment_id_clause)
	{
		tq_free(this->tq, this->results_in_assessment_id_clause);
		this->results_in_assessment_id_clause = NULL;
		this->assessment_id_n = 0;
	}
	if(this->results_in_base_clause)
	{
		tq_free(this->tq, this->results_in_base_clause);
		this->results_in_base_clause = NULL;
		this->base_n = 0;
	}
	if(this->results_in_path_clause)
	{
		tq_free(this->tq, this->results_in_path_clause);
		this->results_in_path_clause = NULL;
		this->path_n = 0;
	}
	if(this->results_in_script_clause)
	{
		tq_free(this->tq, this->results_in_script_clause);
		this->results_in_script_clause = NULL;
		this->script_n = 0;
	}
	return ERR_SUCCESS;
}
BP_ERROR_T Block :: destroyWebResultStackWhereClauses ( ) { if ( this -> results_in_id_clause ) { tq_free ( this -> tq , this -> results_in_id_clause ) ; this -> results_in_id_clause = NULL ; this -> id_n = 0 ; } if ( this -> results_in_assessment_id_clause ) { tq_free ( this -> tq , this -> results_in_assessment_id_clause ) ; this -> results_in_assessment_id_clause = NULL ; this -> assessment_id_n = 0 ; } if ( this -> results_in_base_clause ) { tq_free ( this -> tq , this -> results_in_base_clause ) ; this -> results_in_base_clause = NULL ; this -> base_n = 0 ; } if ( this -> results_in_path_clause ) { tq_free ( this -> tq , this -> results_in_path_clause ) ; this -> results_in_path_clause = NULL ; this -> path_n = 0 ; } if ( this -> results_in_script_clause ) { tq_free ( this -> tq , this -> results_in_script_clause ) ; this -> results_in_script_clause = NULL ; this -> script_n = 0 ; } return ERR_SUCCESS ; }
Destroy the where clauses if they exist
Destroy the where clauses if they exist
// `results`.`id` IN ( d,a,t,a ) // `results`.`assessment_id` IN ( d,a,t,a ) // `results`.`base` IN ( d,a,t,a ) // `results`.`path` IN (d,a,t,a) // `results`.`script` IN (d,a,t,a) // return indicating success