language-extensions/R/test/src/RExtensionApiTests.cpp
//----------------------------------------------------------------------------------------------
// Name: RExtensionApiTest::InitializeSession
//
// Description:
//  Initializes a valid, default session for later tests
//
:InitializeSession
Description:
Initializes a valid, default session for later tests
: InitializeSession Description : Initializes a valid default session for later tests
void RExtensionApiTests::InitializeSession(
		SQLUSMALLINT inputSchemaColumnsNumber,
		string       scriptString,
		SQLUSMALLINT parametersNumber)
	{
		SQLRETURN result = SQL_SUCCESS;
		SQLCHAR *script = static_cast<SQLCHAR*>(
			static_cast<void*>(const_cast<char*>(scriptString.c_str())));
		result = (*sm_initSessionFuncPtr)(
			*m_sessionId,
			m_taskId,
			m_numTasks,
			script,
			scriptString.length(),
			inputSchemaColumnsNumber,
			parametersNumber,
			m_inputDataName,
			m_inputDataNameString.length(),
			m_outputDataName,
			m_outputDataNameString.length());
		EXPECT_EQ(result, SQL_SUCCESS);
	}
void RExtensionApiTests :: InitializeSession ( SQLUSMALLINT inputSchemaColumnsNumber , string scriptString , SQLUSMALLINT parametersNumber ) { SQLRETURN result = SQL_SUCCESS ; SQLCHAR * script = static_cast < SQLCHAR * > ( static_cast < void * > ( const_cast < char * > ( scriptString . c_str ( ) ) ) ) ; result = ( * sm_initSessionFuncPtr ) ( * m_sessionId , m_taskId , m_numTasks , script , scriptString . length ( ) , inputSchemaColumnsNumber , parametersNumber , m_inputDataName , m_inputDataNameString . length ( ) , m_outputDataName , m_outputDataNameString . length ( ) ) ; EXPECT_EQ ( result , SQL_SUCCESS ) ; }
Name: RExtensionApiTest::InitializeSession
Description:
Initializes a valid, default session for later tests
Name : RExtensionApiTest :: InitializeSession Description : Initializes a valid default session for later tests