diff options
author | unknown <tomas@poseidon.ndb.mysql.com> | 2006-06-30 16:25:07 +0200 |
---|---|---|
committer | unknown <tomas@poseidon.ndb.mysql.com> | 2006-06-30 16:25:07 +0200 |
commit | 437afbfda8ece60baa898b14fe8c01b3c00d8f09 (patch) | |
tree | ba24c50e469ff59cda1871dd34855f861713fcd8 /sql/ha_ndbcluster.cc | |
parent | 5d506d6b6255589dd4c28958ee03be59c690f4cf (diff) | |
download | mariadb-git-437afbfda8ece60baa898b14fe8c01b3c00d8f09.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.cc | 6 |
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) { |