1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-19 19:03:26 +03:00

MySQL Bugs: #16925: ndb, added additional getters on NdbDictionary::Event

This commit is contained in:
tomas@poseidon.ndb.mysql.com
2006-02-07 10:26:32 +01:00
parent 28e925454a
commit 69ed898ec2
3 changed files with 25 additions and 18 deletions

View File

@@ -1178,6 +1178,29 @@ int NdbEventImpl::getNoOfEventColumns() const
return m_attrIds.size() + m_columns.size();
}
const NdbDictionary::Column *
NdbEventImpl::getEventColumn(unsigned no) const
{
if (m_columns.size())
{
if (no < m_columns.size())
{
return m_columns[no];
}
}
else if (m_attrIds.size())
{
if (no < m_attrIds.size())
{
NdbTableImpl* tab= m_tableImpl;
if (tab == 0)
return 0;
return tab->getColumn(m_attrIds[no]);
}
}
return 0;
}
/**
* NdbDictionaryImpl
*/