language-extensions/python/test/src/PythonGetResultsTests.cpp
// Name: GetDateTimeResultsTest
//
// Description:
//  Test GetResults with default script expecting an OutputDataSet of DateTime column data.
//
GetDateTimeResultsTest
Description:
Test GetResults with default script expecting an OutputDataSet of DateTime column data.
GetDateTimeResultsTest Description : Test GetResults with default script expecting an OutputDataSet of DateTime column data .
TEST_F(PythonExtensionApiTests, GetDateTimeResultsTest)
	{
		InitializeSession(0,  parametersNumber
			(*m_dateTimeInfo).GetColumnsNumber(),
			m_scriptString);
		InitializeColumns<SQL_TIMESTAMP_STRUCT, SQL_C_TYPE_TIMESTAMP>(m_dateTimeInfo.get());
		TestExecute<SQL_TIMESTAMP_STRUCT, SQL_C_TYPE_TIMESTAMP>(
			ColumnInfo<SQL_TIMESTAMP_STRUCT>::sm_rowsNumber,
			(*m_dateTimeInfo).m_dataSet.data(),
			(*m_dateTimeInfo).m_strLen_or_Ind.data(),
			(*m_dateTimeInfo).m_columnNames);
		TestGetDateTimeResults<SQL_TIMESTAMP_STRUCT>(
			ColumnInfo<SQL_TIMESTAMP_STRUCT>::sm_rowsNumber,
			(*m_dateTimeInfo).m_dataSet.data(),
			(*m_dateTimeInfo).m_strLen_or_Ind.data(),
			(*m_dateTimeInfo).m_columnNames);
	}
TEST_F ( PythonExtensionApiTests , GetDateTimeResultsTest ) { InitializeSession ( 0 , ( * m_dateTimeInfo ) . GetColumnsNumber ( ) , m_scriptString ) ; InitializeColumns < SQL_TIMESTAMP_STRUCT , SQL_C_TYPE_TIMESTAMP > ( m_dateTimeInfo . get ( ) ) ; TestExecute < SQL_TIMESTAMP_STRUCT , SQL_C_TYPE_TIMESTAMP > ( ColumnInfo < SQL_TIMESTAMP_STRUCT > :: sm_rowsNumber , ( * m_dateTimeInfo ) . m_dataSet . data ( ) , ( * m_dateTimeInfo ) . m_strLen_or_Ind . data ( ) , ( * m_dateTimeInfo ) . m_columnNames ) ; TestGetDateTimeResults < SQL_TIMESTAMP_STRUCT > ( ColumnInfo < SQL_TIMESTAMP_STRUCT > :: sm_rowsNumber , ( * m_dateTimeInfo ) . m_dataSet . data ( ) , ( * m_dateTimeInfo ) . m_strLen_or_Ind . data ( ) , ( * m_dateTimeInfo ) . m_columnNames ) ; }
Name: GetDateTimeResultsTest
Description:
Test GetResults with default script expecting an OutputDataSet of DateTime column data.
Name : GetDateTimeResultsTest Description : Test GetResults with default script expecting an OutputDataSet of DateTime column data .
// Initialize with a default Session that prints Hello PythonExtension // and assigns InputDataSet to OutputDataSet // // parametersNumber