summaryrefslogtreecommitdiff
path: root/sql/ha_ndbcluster.cc
diff options
context:
space:
mode:
authorunknown <mskold@mysql.com>2004-07-19 17:28:07 +0200
committerunknown <mskold@mysql.com>2004-07-19 17:28:07 +0200
commite5c416e4f19f72cb6c1c5462cf5aa39dba0c35d7 (patch)
treed4f2ea9ef2a4680d658176d62a8fb061ef4c5f1b /sql/ha_ndbcluster.cc
parent149b70dc5784af6142c7aa2043dccccceff97430 (diff)
downloadmariadb-git-e5c416e4f19f72cb6c1c5462cf5aa39dba0c35d7.tar.gz
Fix for bug#4595
Diffstat (limited to 'sql/ha_ndbcluster.cc')
-rw-r--r--sql/ha_ndbcluster.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc
index b57735b9de6..1fea8752c86 100644
--- a/sql/ha_ndbcluster.cc
+++ b/sql/ha_ndbcluster.cc
@@ -624,11 +624,12 @@ int ha_ndbcluster::pk_read(const byte *key, uint key_len, byte *buf)
return res;
}
- // Read non-key field(s)
+ // Read non-key field(s) unless HA_EXTRA_RETRIEVE_ALL_COLS
for (i= 0; i < no_fields; i++)
{
Field *field= table->field[i];
- if (thd->query_id == field->query_id)
+ if ((thd->query_id == field->query_id) ||
+ retrieve_all_fields)
{
if (get_ndb_value(op, i, field->ptr))
goto err;