diff options
author | tomas@poseidon.ndb.mysql.com <> | 2006-06-30 16:25:07 +0200 |
---|---|---|
committer | tomas@poseidon.ndb.mysql.com <> | 2006-06-30 16:25:07 +0200 |
commit | 9f542ef0f4f79d0814cbe4668c6cca3c0f4ad649 (patch) | |
tree | ba24c50e469ff59cda1871dd34855f861713fcd8 /sql/ha_ndbcluster.cc | |
parent | 87460ec76a30a8070f8cebbdf6c93be208e3f969 (diff) | |
download | mariadb-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.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) { |