language-extensions/python/src/PythonDataSet.cpp
//-------------------------------------------------------------------------------------------------
// Name: PythonOutputDataSet::PopulateColumnsDataType
//
// Description:
//  Finds the data type for each column and stores it in the member m_columnsDataType.
//

:PopulateColumnsDataType
Description:
Finds the data type for each column and stores it in the member m_columnsDataType.
: PopulateColumnsDataType Description : Finds the data type for each column and stores it in the member m_columnsDataType .
void PythonOutputDataSet::PopulateColumnsDataType()
{
	LOG("PythonOutputDataSet::PopulateColumnsDataType");
	if (m_columnsDataType.empty())
	{
		SQLUSMALLINT numberOfCols = GetDataFrameColumnsNumber();
		for (SQLUSMALLINT columnNumber = 0; columnNumber < numberOfCols; ++columnNumber)
		{
			SQLSMALLINT dataType = PopulateColumnDataType(columnNumber);
			m_columnsDataType.push_back(dataType);
		}
	}
}
void PythonOutputDataSet :: PopulateColumnsDataType ( ) { LOG ( " " ) ; if ( m_columnsDataType . empty ( ) ) { SQLUSMALLINT numberOfCols = GetDataFrameColumnsNumber ( ) ; for ( SQLUSMALLINT columnNumber = 0 ; columnNumber < numberOfCols ; ++ columnNumber ) { SQLSMALLINT dataType = PopulateColumnDataType ( columnNumber ) ; m_columnsDataType . push_back ( dataType ) ; } } }
Name: PythonOutputDataSet::PopulateColumnsDataType
Description:
Finds the data type for each column and stores it in the member m_columnsDataType.
Name : PythonOutputDataSet :: PopulateColumnsDataType Description : Finds the data type for each column and stores it in the member m_columnsDataType .