language-extensions/R/src/RSession.cpp
//--------------------------------------------------------------------------------------------------
// Name: RSession::GetResults
//
// Description:
//  Returns the output data and the null map retrieved from the user script.
//  When rowsNumber is 0, the data and strLenOrInd returned contain address of nullptr.
//
:GetResults
Description:
Returns the output data and the null map retrieved from the user script.
When rowsNumber is 0, the data and strLenOrInd returned contain address of nullptr.
: GetResults Description : Returns the output data and the null map retrieved from the user script . When rowsNumber is 0 the data and strLenOrInd returned contain address of nullptr .
void RSession::GetResults(
	SQLULEN    *rowsNumber,
	SQLPOINTER **data,
	SQLINTEGER ***strLen_or_Ind)
{
	LOG("RSession::GetResults");
	if (rowsNumber != nullptr && data != nullptr && strLen_or_Ind != nullptr)
	{
		*rowsNumber = m_outputDataSet.RowsNumber();
		*data = m_outputDataSet.GetData();
		*strLen_or_Ind = m_outputDataSet.GetColumnNullMap();
	}
	else
	{
		throw runtime_error("Invalid parameters provided to GetResults()");
	}
}
void RSession :: GetResults ( SQLULEN * rowsNumber , SQLPOINTER * * data , SQLINTEGER * * * strLen_or_Ind ) { LOG ( " " ) ; if ( rowsNumber != nullptr && data != nullptr && strLen_or_Ind != nullptr ) { * rowsNumber = m_outputDataSet . RowsNumber ( ) ; * data = m_outputDataSet . GetData ( ) ; * strLen_or_Ind = m_outputDataSet . GetColumnNullMap ( ) ; } else { throw runtime_error ( " " ) ; } }
Name: RSession::GetResults
Description:
Returns the output data and the null map retrieved from the user script.
Name : RSession :: GetResults Description : Returns the output data and the null map retrieved from the user script .