language-extensions/python/test/src/PythonGetResultColumnTests.cpp
// Name: GetIntegerResultColumnsTest
//
// Description:
//  Test GetResultColumn with default script expecting an OutputDataSet of Integer columns.
//

GetIntegerResultColumnsTest
Description:
Test GetResultColumn with default script expecting an OutputDataSet of Integer columns.
GetIntegerResultColumnsTest Description : Test GetResultColumn with default script expecting an OutputDataSet of Integer columns .
TEST_F(PythonExtensionApiTests, GetIntegerResultColumnsTest)
	{
		InitializeSession(0, 
			(*m_integerInfo).GetColumnsNumber(),
			m_scriptString);
		InitializeColumns<SQLINTEGER, SQL_C_SLONG>(m_integerInfo.get());
		TestExecute<SQLINTEGER, SQL_C_SLONG>(
			ColumnInfo<SQLINTEGER>::sm_rowsNumber,
			(*m_integerInfo).m_dataSet.data(),
			(*m_integerInfo).m_strLen_or_Ind.data(),
			(*m_integerInfo).m_columnNames,
			false);  
		TestGetResultColumn(0,  
			SQL_C_SLONG,        
			m_IntSize,          
			0,                  
			SQL_NO_NULLS);      
		TestGetResultColumn(1,  
			SQL_C_DOUBLE,       
			m_DoubleSize,       
			0,                  
			SQL_NULLABLE);      
	}
TEST_F ( PythonExtensionApiTests , GetIntegerResultColumnsTest ) { InitializeSession ( 0 , ( * m_integerInfo ) . GetColumnsNumber ( ) , m_scriptString ) ; InitializeColumns < SQLINTEGER , SQL_C_SLONG > ( m_integerInfo . get ( ) ) ; TestExecute < SQLINTEGER , SQL_C_SLONG > ( ColumnInfo < SQLINTEGER > :: sm_rowsNumber , ( * m_integerInfo ) . m_dataSet . data ( ) , ( * m_integerInfo ) . m_strLen_or_Ind . data ( ) , ( * m_integerInfo ) . m_columnNames , false ) ; TestGetResultColumn ( 0 , SQL_C_SLONG , m_IntSize , 0 , SQL_NO_NULLS ) ; TestGetResultColumn ( 1 , SQL_C_DOUBLE , m_DoubleSize , 0 , SQL_NULLABLE ) ; }
Name: GetIntegerResultColumnsTest
Description:
Test GetResultColumn with default script expecting an OutputDataSet of Integer columns.
Name : GetIntegerResultColumnsTest Description : Test GetResultColumn with default script expecting an OutputDataSet of Integer columns .
// parametersNumber
 // validate
 // columnNumber
 // dataType
 // columnSize
 // decimalDigits
 // nullable
 // Returns double type because NULLs get changed to NaN 
 // and column changes to float64
 //
 // columnNumber
 // dataType
 // columnSize
 // decimalDigits
 // nullable
