summaryrefslogtreecommitdiff
path: root/ndb
diff options
context:
space:
mode:
Diffstat (limited to 'ndb')
-rw-r--r--ndb/src/ndbapi/NdbDictionaryImpl.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ndb/src/ndbapi/NdbDictionaryImpl.hpp b/ndb/src/ndbapi/NdbDictionaryImpl.hpp
index d61bc2ecc55..7e3e3b19294 100644
--- a/ndb/src/ndbapi/NdbDictionaryImpl.hpp
+++ b/ndb/src/ndbapi/NdbDictionaryImpl.hpp
@@ -580,7 +580,7 @@ NdbTableImpl::getColumn(const char * name){
} else {
for(Uint32 i = 0; i<sz; i++){
NdbColumnImpl* col = * cols++;
- if(col != 0 && strncmp(name, col->m_name.c_str(), col->m_name.length()) == 0)
+ if(col != 0 && strcmp(name, col->m_name.c_str()) == 0)
return col;
}
}