Added support for ha_ndbcluster::info(HA_STATUS_AUTO)

This commit is contained in:
mskold@mysql.com 2005-08-10 09:38:36 +02:00
parent a4d6113d22
commit 7ccf9b9708

View File

@ -2826,7 +2826,16 @@ void ha_ndbcluster::info(uint flag)
errkey= m_dupkey;
}
if (flag & HA_STATUS_AUTO)
{
DBUG_PRINT("info", ("HA_STATUS_AUTO"));
if (m_table)
{
Ndb *ndb= get_ndb();
auto_increment_value=
ndb->readAutoIncrementValue((const NDBTAB *) m_table);
}
}
DBUG_VOID_RETURN;
}