language-extensions/R/test/src/RExtensionApiTests.cpp
//----------------------------------------------------------------------------------------------
// Name: RExtensionApiTest::RExtensionApiTestInitializeColumn
//
// Description:
//  Calls InitColumn for the given columnNumber, columnName, dataType and columnSize.
//
:RExtensionApiTestInitializeColumn
Description:
Calls InitColumn for the given columnNumber, columnName, dataType and columnSize.
: RExtensionApiTestInitializeColumn Description : Calls InitColumn for the given columnNumber columnName dataType and columnSize .
void RExtensionApiTests::InitializeColumn(
		SQLSMALLINT columnNumber,
		string      columnNameString,
		SQLSMALLINT dataType,
		SQLULEN     columnSize,
		SQLSMALLINT decimalDigits,
		SQLSMALLINT nullable,
		SQLSMALLINT partitionByNumber)
	{
		SQLCHAR *columnName = static_cast<SQLCHAR *>(
			static_cast<void *>(const_cast<char *>(columnNameString.c_str()))
			);
		SQLRETURN result = SQL_ERROR;
		result = (*sm_initColumnFuncPtr)(
				*m_sessionId,
				m_taskId,
				columnNumber,
				columnName,
				columnNameString.length(),
				dataType,
				columnSize,
				decimalDigits,
				nullable,                 
				partitionByNumber,        
				-1);                      
		EXPECT_EQ(result, SQL_SUCCESS);
	}
void RExtensionApiTests :: InitializeColumn ( SQLSMALLINT columnNumber , string columnNameString , SQLSMALLINT dataType , SQLULEN columnSize , SQLSMALLINT decimalDigits , SQLSMALLINT nullable , SQLSMALLINT partitionByNumber ) { SQLCHAR * columnName = static_cast < SQLCHAR * > ( static_cast < void * > ( const_cast < char * > ( columnNameString . c_str ( ) ) ) ) ; SQLRETURN result = SQL_ERROR ; result = ( * sm_initColumnFuncPtr ) ( * m_sessionId , m_taskId , columnNumber , columnName , columnNameString . length ( ) , dataType , columnSize , decimalDigits , nullable , partitionByNumber , -1 ) ; EXPECT_EQ ( result , SQL_SUCCESS ) ; }
Name: RExtensionApiTest::RExtensionApiTestInitializeColumn
Description:
Calls InitColumn for the given columnNumber, columnName, dataType and columnSize.
Name : RExtensionApiTest :: RExtensionApiTestInitializeColumn Description : Calls InitColumn for the given columnNumber columnName dataType and columnSize .
// nullable // partitionByNumber // orderByNumber