language-extensions/python/test/src/PythonGetResultColumnTests.cpp
// Name: GetBooleanResultColumnsTest
//
// Description:
//  Test GetResultColumn with default script using an OutputDataSet of Boolean columns.
//

GetBooleanResultColumnsTest
Description:
Test GetResultColumn with default script using an OutputDataSet of Boolean columns.
GetBooleanResultColumnsTest Description : Test GetResultColumn with default script using an OutputDataSet of Boolean columns .
TEST_F(PythonExtensionApiTests, GetBooleanResultColumnsTest)
	{
		InitializeSession(0, 
			(*m_booleanInfo).GetColumnsNumber(),
			m_scriptString);
		InitializeColumns<SQLCHAR, SQL_C_BIT>(m_booleanInfo.get());
		TestExecute<SQLCHAR, SQL_C_BIT>(
			ColumnInfo<SQLCHAR>::sm_rowsNumber,
			(*m_booleanInfo).m_dataSet.data(),
			(*m_booleanInfo).m_strLen_or_Ind.data(),
			(*m_booleanInfo).m_columnNames,
			false);  
		TestGetResultColumn(0, 
			SQL_C_BIT,         
			m_BooleanSize,     
			0,                 
			SQL_NO_NULLS);     
		TestGetResultColumn(1, 
			SQL_C_CHAR,        
			5,                 
			0,                 
			SQL_NULLABLE);     
	}
TEST_F ( PythonExtensionApiTests , GetBooleanResultColumnsTest ) { InitializeSession ( 0 , ( * m_booleanInfo ) . GetColumnsNumber ( ) , m_scriptString ) ; InitializeColumns < SQLCHAR , SQL_C_BIT > ( m_booleanInfo . get ( ) ) ; TestExecute < SQLCHAR , SQL_C_BIT > ( ColumnInfo < SQLCHAR > :: sm_rowsNumber , ( * m_booleanInfo ) . m_dataSet . data ( ) , ( * m_booleanInfo ) . m_strLen_or_Ind . data ( ) , ( * m_booleanInfo ) . m_columnNames , false ) ; TestGetResultColumn ( 0 , SQL_C_BIT , m_BooleanSize , 0 , SQL_NO_NULLS ) ; TestGetResultColumn ( 1 , SQL_C_CHAR , 5 , 0 , SQL_NULLABLE ) ; }
Name: GetBooleanResultColumnsTest
Description:
Test GetResultColumn with default script using an OutputDataSet of Boolean columns.
Name : GetBooleanResultColumnsTest Description : Test GetResultColumn with default script using an OutputDataSet of Boolean columns .
// Initialize with a default Session that prints Hello PythonExtension
 // and assigns InputDataSet to OutputDataSet
 //
 // parametersNumber
 // validate
 // columnNumber
 // dataType
 // columnSize
 // decimalDigits
 // nullable
 // columnNumber
 // dataType - since there is a NULL, we return SQL_C_CHAR
 // columnSize - length of the word "False"
 // decimalDigits
 // nullable
