Skip to content

Commit bb8c42b

Browse files
committed
WL#13246 MODIFY TESTSCAN TO SUPPORT MIXED-VERSIONS. Post push fix.
Use Unsigned columns instead of signed Int columns for T18. HugoCalculator assumes at least two unsigned columns to work. And in testBackup runDDL() randomly choose a NDBT_Table and uses HugoCalculator functionality on that. Reviewed-by: Tiago Alves <[email protected]>
1 parent c297308 commit bb8c42b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

storage/ndb/test/src/NDBT_Tables.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
2424
// Define Ndb standard tables
2525
//
2626
// USE ONLY UPPERLETTERS IN TAB AND COLUMN NAMES
27+
//
28+
// Tables need to have at least two Unsigned columns.
29+
// The first found will be used as id.
30+
// The last found which is not part of primary key will be used for update
31+
// count. See HugoCalculator.
32+
//
2733
/* ******************************************************* */
2834

2935
static const NdbDictionary::Column::StorageType MM=
@@ -603,9 +609,9 @@ NDBT_Table T16("T16", sizeof(T16Attribs)/sizeof(NDBT_Attribute), T16Attribs);
603609
static
604610
const
605611
NDBT_Attribute T18Attribs[] = {
606-
NDBT_Attribute("PK1", NdbDictionary::Column::Int, 1, true),
607-
NDBT_Attribute("PK2", NdbDictionary::Column::Int, 1, true),
608-
NDBT_Attribute("A1", NdbDictionary::Column::Int, 1),
612+
NDBT_Attribute("PK1", NdbDictionary::Column::Unsigned, 1, true),
613+
NDBT_Attribute("PK2", NdbDictionary::Column::Unsigned, 1, true),
614+
NDBT_Attribute("A1", NdbDictionary::Column::Unsigned, 1),
609615
};
610616

611617
static

0 commit comments

Comments
 (0)