summaryrefslogtreecommitdiff
path: root/sql/ha_ndbcluster.cc
diff options
context:
space:
mode:
authormskold@mysql.com <>2005-08-10 09:38:36 +0200
committermskold@mysql.com <>2005-08-10 09:38:36 +0200
commit7ccf9b970839a25e92e2e8e9ce85c5efa4a38f65 (patch)
tree8198245edf50380074a51109f976aab7051f207b /sql/ha_ndbcluster.cc
parenta4d6113d2228e7eab50547508f49baf0fd72d515 (diff)
downloadmariadb-git-7ccf9b970839a25e92e2e8e9ce85c5efa4a38f65.tar.gz
Added support for ha_ndbcluster::info(HA_STATUS_AUTO)
Diffstat (limited to 'sql/ha_ndbcluster.cc')
-rw-r--r--sql/ha_ndbcluster.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc
index e14d4b13311..ac99506bb79 100644
--- a/sql/ha_ndbcluster.cc
+++ b/sql/ha_ndbcluster.cc
@@ -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;
}