From 437afbfda8ece60baa898b14fe8c01b3c00d8f09 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 30 Jun 2006 16:25:07 +0200 Subject: adopted ndb handler code for tables without primary key and with unique index - added missing retrieval of hidden primary key --- sql/ha_ndbcluster.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sql') 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) { -- cgit v1.2.1