adopted ndb handler code for tables without primary key and with unique index
- added missing retrieval of hidden primary key
This commit is contained in:
parent
5d506d6b62
commit
437afbfda8
@ -1364,6 +1364,12 @@ int ha_ndbcluster::unique_index_read(const byte *key,
|
|||||||
m_value[i].ptr= NULL;
|
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)
|
if (execute_no_commit_ie(this,trans) != 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user