summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.mysql.com>2007-02-14 15:16:26 +0700
committerunknown <tomas@poseidon.mysql.com>2007-02-14 15:16:26 +0700
commit5a25c67a59b1e80fba4a0487508c899e6ae88d8f (patch)
tree43b4e72924fee9ee27953f2c6268bcaefe4b5611
parent00b143b439a9ae00ba6653c399f4a6da718626d3 (diff)
downloadmariadb-git-5a25c67a59b1e80fba4a0487508c899e6ae88d8f.tar.gz
Bug #21033 Error 0 in readAutoIncrementValue()
- do not call function if table has no autoincrement
-rw-r--r--sql/ha_ndbcluster.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc
index 30be53f1ddb..3d0d8a3f079 100644
--- a/sql/ha_ndbcluster.cc
+++ b/sql/ha_ndbcluster.cc
@@ -3245,7 +3245,7 @@ int ha_ndbcluster::info(uint flag)
if (flag & HA_STATUS_AUTO)
{
DBUG_PRINT("info", ("HA_STATUS_AUTO"));
- if (m_table)
+ if (m_table && table->found_next_number_field)
{
Ndb *ndb= get_ndb();