Skip to content
Permalink
Browse files

Update odbccpp dependency

  • Loading branch information
mrylov authored and nyalldawson committed Apr 7, 2021
1 parent 59a365a commit d322638acae8751c3f91cd3433f662693306ac3e
@@ -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);
@@ -44,6 +44,22 @@ class ODBC_EXPORT ResultSetMetaData : public ResultSetMetaDataBase
*/
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.
*
@@ -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);
@@ -44,6 +44,22 @@ class ODBC_EXPORT ResultSetMetaDataUnicode : public ResultSetMetaDataBase
*/
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.
*

0 comments on commit d322638

Please sign in to comment.