Update odbccpp dependency

This commit is contained in:
Maxim Rylov 2021-03-25 13:53:08 +01:00 committed by Nyall Dawson
parent fd817b7165
commit 5dcfc8fb60
4 changed files with 54 additions and 0 deletions

View File

@ -29,6 +29,16 @@ string ResultSetMetaData::getTableName(unsigned short columnIndex)
return getStringColAttribute(columnIndex, SQL_DESC_TABLE_NAME);
}
//------------------------------------------------------------------------------
string ResultSetMetaData::getBaseTableName(unsigned short columnIndex)
{
return getStringColAttribute(columnIndex, SQL_DESC_BASE_TABLE_NAME);
}
//------------------------------------------------------------------------------
string ResultSetMetaData::getBaseColumnName(unsigned short columnIndex)
{
return getStringColAttribute(columnIndex, SQL_DESC_BASE_COLUMN_NAME);
}
//------------------------------------------------------------------------------
string ResultSetMetaData::getColumnLabel(unsigned short columnIndex)
{
return getStringColAttribute(columnIndex, SQL_DESC_LABEL);

View File

@ -44,6 +44,22 @@ public:
*/
std::string getTableName(unsigned short columnIndex);
/**
* Returns the name of the base table that contains the column.
*
* @param columnIndex The column index starting from 1.
* @return Returns the base table name.
*/
std::string getBaseTableName(unsigned short columnIndex);
/**
* Returns the base column name for the result set column.
*
* @param columnIndex The column index starting from 1.
* @return Returns the base column name.
*/
std::string getBaseColumnName(unsigned short columnIndex);
/**
* Returns a column's label.
*

View File

@ -29,6 +29,18 @@ u16string ResultSetMetaDataUnicode::getTableName(unsigned short columnIndex)
return getStringColAttribute(columnIndex, SQL_DESC_TABLE_NAME);
}
//------------------------------------------------------------------------------
u16string ResultSetMetaDataUnicode::getBaseTableName(
unsigned short columnIndex)
{
return getStringColAttribute(columnIndex, SQL_DESC_BASE_TABLE_NAME);
}
//------------------------------------------------------------------------------
u16string ResultSetMetaDataUnicode::getBaseColumnName(
unsigned short columnIndex)
{
return getStringColAttribute(columnIndex, SQL_DESC_BASE_COLUMN_NAME);
}
//------------------------------------------------------------------------------
u16string ResultSetMetaDataUnicode::getColumnLabel(unsigned short columnIndex)
{
return getStringColAttribute(columnIndex, SQL_DESC_LABEL);

View File

@ -44,6 +44,22 @@ public:
*/
std::u16string getTableName(unsigned short columnIndex);
/**
* Returns the name of the base table that contains the column.
*
* @param columnIndex The column index starting from 1.
* @return Returns the base table name.
*/
std::u16string getBaseTableName(unsigned short columnIndex);
/**
* Returns the base column name for the result set column.
*
* @param columnIndex The column index starting from 1.
* @return Returns the base column name.
*/
std::u16string getBaseColumnName(unsigned short columnIndex);
/**
* Returns a column's label.
*