language-extensions/R/src/RExtension.cpp
//--------------------------------------------------------------------------------------------------
// Name: GetResults
//
// Description:
//  Returns the output data as well as the null map retrieved from the user program
//
// Returns:
//  SQL_SUCCESS on success, else SQL_ERROR
//
GetResults
Description:
Returns the output data as well as the null map retrieved from the user program


GetResults Description : Returns the output data as well as the null map retrieved from the user program
SQLRETURN GetResults(
	SQLGUID      sessionId,
	SQLUSMALLINT taskId,
	SQLULEN      *rowsNumber,
	SQLPOINTER   **data,
	SQLINTEGER   ***strLen_or_Ind
)
{
	LOG("RExtension::GetResults");
	SQLRETURN result = SQL_ERROR;
	try
	{
		RSession* session = CheckAndGetSession("GetResults", sessionId, taskId);
		session->GetResults(
			rowsNumber,
			data,
			strLen_or_Ind);
		result = SQL_SUCCESS;
	}
	catch (exception &ex)
	{
		result = SQL_ERROR;
		LOG_EXCEPTION(ex);
	}
	catch (...)
	{
		result = SQL_ERROR;
		LOG_ERROR("Unexpected exception occurred in function GetResults().");
	}
	return result;
}
SQLRETURN GetResults ( SQLGUID sessionId , SQLUSMALLINT taskId , SQLULEN * rowsNumber , SQLPOINTER * * data , SQLINTEGER * * * strLen_or_Ind ) { LOG ( " " ) ; SQLRETURN result = SQL_ERROR ; try { RSession * session = CheckAndGetSession ( " " , sessionId , taskId ) ; session -> GetResults ( rowsNumber , data , strLen_or_Ind ) ; result = SQL_SUCCESS ; } catch ( exception & ex ) { result = SQL_ERROR ; LOG_EXCEPTION ( ex ) ; } catch ( ... ) { result = SQL_ERROR ; LOG_ERROR ( " " ) ; } return result ; }
Name: GetResults
Description:
Returns the output data as well as the null map retrieved from the user program
Name : GetResults Description : Returns the output data as well as the null map retrieved from the user program