language-extensions/R/test/src/RExtensionGetResultColumnTests.cpp
//----------------------------------------------------------------------------------------------
// Name: GetLogicalResultColumnsTest
//
// Description:
//  Tests GetResultColumn with default script using an OutputDataSet of Logical columns.
//
GetLogicalResultColumnsTest
Description:
Tests GetResultColumn with default script using an OutputDataSet of Logical columns.
GetLogicalResultColumnsTest Description : Tests GetResultColumn with default script using an OutputDataSet of Logical columns .
TEST_F(RExtensionApiTests, GetLogicalResultColumnsTest)
	{
		InitializeSession(
			(*m_logicalInfo).GetColumnsNumber(),
			m_scriptString);
		InitializeColumns<SQLCHAR, SQL_C_BIT>(m_logicalInfo.get());
		Execute<SQLCHAR, Rcpp::LogicalVector, SQL_C_BIT>(
			ColumnInfo<SQLCHAR>::sm_rowsNumber,
			(*m_logicalInfo).m_dataSet.data(),
			(*m_logicalInfo).m_strLen_or_Ind.data(),
			(*m_logicalInfo).m_columnNames,
			false);   validate
		GetResultColumn(0,  columnNumber
			SQL_C_BIT,      dataType
			m_LogicalSize,  columnSize
			0,              decimalDigits
			SQL_NO_NULLS);  nullable
		GetResultColumn(1,  columnNumber
			SQL_C_BIT,      dataType
			m_LogicalSize,  columnSize
			0,              decimalDigits
			SQL_NULLABLE);  nullable
	}
TEST_F ( RExtensionApiTests , GetLogicalResultColumnsTest ) { InitializeSession ( ( * m_logicalInfo ) . GetColumnsNumber ( ) , m_scriptString ) ; InitializeColumns < SQLCHAR , SQL_C_BIT > ( m_logicalInfo . get ( ) ) ; Execute < SQLCHAR , Rcpp :: LogicalVector , SQL_C_BIT > ( ColumnInfo < SQLCHAR > :: sm_rowsNumber , ( * m_logicalInfo ) . m_dataSet . data ( ) , ( * m_logicalInfo ) . m_strLen_or_Ind . data ( ) , ( * m_logicalInfo ) . m_columnNames , false ) ; GetResultColumn ( 0 , SQL_C_BIT , m_LogicalSize , 0 , SQL_NO_NULLS ) ; GetResultColumn ( 1 , SQL_C_BIT , m_LogicalSize , 0 , SQL_NULLABLE ) ; }
Name: GetLogicalResultColumnsTest
Description:
Tests GetResultColumn with default script using an OutputDataSet of Logical columns.
Name : GetLogicalResultColumnsTest Description : Tests GetResultColumn with default script using an OutputDataSet of Logical columns .
// Initialize with a default Session that prints Hello RExtension // and assigns InputDataSet to OutputDataSet // // validate // columnNumber // dataType // columnSize // decimalDigits // nullable // columnNumber // dataType // columnSize // decimalDigits // nullable