summaryrefslogtreecommitdiff
path: root/ndb/test/src
diff options
context:
space:
mode:
authorunknown <joreland@mysql.com>2004-12-16 11:14:24 +0100
committerunknown <joreland@mysql.com>2004-12-16 11:14:24 +0100
commit66f7bd24414724af26b2bf690e03ff3fe7ccbb4a (patch)
tree5892131df9c913103036d93000ac339f5d8f72c5 /ndb/test/src
parent61680336a549a0e0d9ce12c9a337fcb64fdbe648 (diff)
downloadmariadb-git-66f7bd24414724af26b2bf690e03ff3fe7ccbb4a.tar.gz
wl2240 - ndb - more testing
ndb/test/ndbapi/testPartitioning.cpp: Update test partitioning to add primary keys (distribution keys) incase of either - only 1 primary key - primary keys with charsets ndb/test/src/HugoCalculator.cpp: Fix so that Hugo can cope with pk's in the "end" of the table
Diffstat (limited to 'ndb/test/src')
-rw-r--r--ndb/test/src/HugoCalculator.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ndb/test/src/HugoCalculator.cpp b/ndb/test/src/HugoCalculator.cpp
index a885a2371f1..20bcc445541 100644
--- a/ndb/test/src/HugoCalculator.cpp
+++ b/ndb/test/src/HugoCalculator.cpp
@@ -40,7 +40,8 @@ HugoCalculator::HugoCalculator(const NdbDictionary::Table& tab) : m_tab(tab) {
// The "number of updates" column for this table is found in the last column
for (i=m_tab.getNoOfColumns()-1; i>=0; i--){
const NdbDictionary::Column* attr = m_tab.getColumn(i);
- if (attr->getType() == NdbDictionary::Column::Unsigned){
+ if (attr->getType() == NdbDictionary::Column::Unsigned &&
+ !attr->getPrimaryKey()){
m_updatesCol = i;
break;
}