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

GetRealResultColumnsTest
Description:
Test GetResultColumn with default script using an OutputDataSet of Real columns.
GetRealResultColumnsTest Description : Test GetResultColumn with default script using an OutputDataSet of Real columns .
TEST_F(PythonExtensionApiTests, GetRealResultColumnsTest)
	{
		InitializeSession(0, 
			(*m_realInfo).GetColumnsNumber(),
			m_scriptString);
		InitializeColumns<SQLREAL, SQL_C_FLOAT>(m_realInfo.get());
		TestExecute<SQLREAL, SQL_C_FLOAT>(
			ColumnInfo<SQLREAL>::sm_rowsNumber,
			(*m_realInfo).m_dataSet.data(),
			(*m_realInfo).m_strLen_or_Ind.data(),
			(*m_realInfo).m_columnNames,
			false);  
		TestGetResultColumn(0, 
			SQL_C_FLOAT,       
			m_RealSize,        
			0,                 
			SQL_NO_NULLS);     
		TestGetResultColumn(1,  
			SQL_C_DOUBLE,       
			m_DoubleSize,       
			0,                  
			SQL_NULLABLE);      
	}
TEST_F ( PythonExtensionApiTests , GetRealResultColumnsTest ) { InitializeSession ( 0 , ( * m_realInfo ) . GetColumnsNumber ( ) , m_scriptString ) ; InitializeColumns < SQLREAL , SQL_C_FLOAT > ( m_realInfo . get ( ) ) ; TestExecute < SQLREAL , SQL_C_FLOAT > ( ColumnInfo < SQLREAL > :: sm_rowsNumber , ( * m_realInfo ) . m_dataSet . data ( ) , ( * m_realInfo ) . m_strLen_or_Ind . data ( ) , ( * m_realInfo ) . m_columnNames , false ) ; TestGetResultColumn ( 0 , SQL_C_FLOAT , m_RealSize , 0 , SQL_NO_NULLS ) ; TestGetResultColumn ( 1 , SQL_C_DOUBLE , m_DoubleSize , 0 , SQL_NULLABLE ) ; }
Name: GetRealResultColumnsTest
Description:
Test GetResultColumn with default script using an OutputDataSet of Real columns.
Name : GetRealResultColumnsTest Description : Test GetResultColumn with default script using an OutputDataSet of Real columns .
// Initialize with a default Session that prints Hello PythonExtension
 // and assigns InputDataSet to OutputDataSet
 //
 // 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
