language-extensions/R/src/RExtension.cpp
//--------------------------------------------------------------------------------------------------
// Name: GetResultColumn
//
// Description:
//  Returns information about the output column
//
// Returns:
//  SQL_SUCCESS on success, else SQL_ERROR
//
GetResultColumn
Description:
Returns information about the output column


GetResultColumn Description : Returns information about the output column
SQLRETURN GetResultColumn(
	SQLGUID      sessionId,
	SQLUSMALLINT taskId,
	SQLUSMALLINT columnNumber,
	SQLSMALLINT  *dataType,
	SQLULEN      *columnSize,
	SQLSMALLINT  *decimalDigits,
	SQLSMALLINT  *nullable
)
{
	LOG("RExtension::GetResultColumn");
	SQLRETURN result = SQL_ERROR;
	try
	{
		RSession* session = CheckAndGetSession("GetResultColumn", sessionId, taskId);
		session->GetResultColumn(
			columnNumber,
			dataType,
			columnSize,
			decimalDigits,
			nullable);
		result = SQL_SUCCESS;
	}
	catch (exception &ex)
	{
		LOG_EXCEPTION(ex);
	}
	catch (...)
	{
		LOG_ERROR("Unexpected exception occurred in function GetResultColumn().");
	}
	return result;
}
SQLRETURN GetResultColumn ( SQLGUID sessionId , SQLUSMALLINT taskId , SQLUSMALLINT columnNumber , SQLSMALLINT * dataType , SQLULEN * columnSize , SQLSMALLINT * decimalDigits , SQLSMALLINT * nullable ) { LOG ( " " ) ; SQLRETURN result = SQL_ERROR ; try { RSession * session = CheckAndGetSession ( " " , sessionId , taskId ) ; session -> GetResultColumn ( columnNumber , dataType , columnSize , decimalDigits , nullable ) ; result = SQL_SUCCESS ; } catch ( exception & ex ) { LOG_EXCEPTION ( ex ) ; } catch ( ... ) { LOG_ERROR ( " " ) ; } return result ; }
Name: GetResultColumn
Description:
Returns information about the output column
Name : GetResultColumn Description : Returns information about the output column