summaryrefslogtreecommitdiff
path: root/sql/ha_ndbcluster.cc
diff options
context:
space:
mode:
authortomas@poseidon.ndb.mysql.com <>2006-06-30 16:25:07 +0200
committertomas@poseidon.ndb.mysql.com <>2006-06-30 16:25:07 +0200
commit9f542ef0f4f79d0814cbe4668c6cca3c0f4ad649 (patch)
treeba24c50e469ff59cda1871dd34855f861713fcd8 /sql/ha_ndbcluster.cc
parent87460ec76a30a8070f8cebbdf6c93be208e3f969 (diff)
downloadmariadb-git-9f542ef0f4f79d0814cbe4668c6cca3c0f4ad649.tar.gz
adopted ndb handler code for tables without primary key and with unique index
- added missing retrieval of hidden primary key
Diffstat (limited to 'sql/ha_ndbcluster.cc')
-rw-r--r--sql/ha_ndbcluster.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc
index 11fdd33fad9..e442d5991fa 100644
--- a/sql/ha_ndbcluster.cc
+++ b/sql/ha_ndbcluster.cc
@@ -1364,6 +1364,12 @@ int ha_ndbcluster::unique_index_read(const byte *key,
m_value[i].ptr= NULL;
}
}
+ if (table->primary_key == MAX_KEY)
+ {
+ DBUG_PRINT("info", ("Getting hidden key"));
+ if (get_ndb_value(op, NULL, i, NULL))
+ ERR_RETURN(op->getNdbError());
+ }
if (execute_no_commit_ie(this,trans) != 0)
{