summaryrefslogtreecommitdiff
path: root/sql/ha_ndbcluster.cc
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.ndb.mysql.com>2005-01-25 13:46:40 +0100
committerunknown <tomas@poseidon.ndb.mysql.com>2005-01-25 13:46:40 +0100
commit984e7d29b2503b8d4a0a61c45beab07625da8ffa (patch)
treedd1bba1d3cbafe2526e4451b170199043b8fc0d3 /sql/ha_ndbcluster.cc
parentffff170528fa91ba3ecbdcdcc43b56b1992a06ea (diff)
downloadmariadb-git-984e7d29b2503b8d4a0a61c45beab07625da8ffa.tar.gz
changed from using column names to column id in ndb setBound in ha_ndbcluster
Diffstat (limited to 'sql/ha_ndbcluster.cc')
-rw-r--r--sql/ha_ndbcluster.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc
index c2d12ddd316..c5bb4984f40 100644
--- a/sql/ha_ndbcluster.cc
+++ b/sql/ha_ndbcluster.cc
@@ -1476,10 +1476,7 @@ int ha_ndbcluster::set_bounds(NdbIndexScanOperation *op,
// Set bound if not cancelled via type -1
if (p.bound_type != -1)
{
- char truncated_field_name[NDB_MAX_ATTR_NAME_SIZE];
- strnmov(truncated_field_name,field->field_name,sizeof(truncated_field_name));
- truncated_field_name[sizeof(truncated_field_name)-1]= '\0';
- if (op->setBound(truncated_field_name, p.bound_type, p.bound_ptr))
+ if (op->setBound(i, p.bound_type, p.bound_ptr))
ERR_RETURN(op->getNdbError());
}
}