summaryrefslogtreecommitdiff
path: root/ndb/test/ndbapi/index2.cpp
diff options
context:
space:
mode:
authorpekka@mysql.com <>2004-09-15 14:52:39 +0200
committerpekka@mysql.com <>2004-09-15 14:52:39 +0200
commitd0d2b820b76a9477099eff822eba6d2bccab6d74 (patch)
tree3f97690b85dbc32ed13e691302d550ef707e0552 /ndb/test/ndbapi/index2.cpp
parent3fe6bebfe4c0ea9523717154f222e8bbee19172a (diff)
downloadmariadb-git-d0d2b820b76a9477099eff822eba6d2bccab6d74.tar.gz
ndb: set column type sets column defaults
Diffstat (limited to 'ndb/test/ndbapi/index2.cpp')
-rw-r--r--ndb/test/ndbapi/index2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ndb/test/ndbapi/index2.cpp b/ndb/test/ndbapi/index2.cpp
index fb2275605d8..f739468d7df 100644
--- a/ndb/test/ndbapi/index2.cpp
+++ b/ndb/test/ndbapi/index2.cpp
@@ -81,16 +81,16 @@ static void createTable(Ndb &myNdb, bool storeInACC, bool twoKey, bool longKey)
int res;
column.setName("X");
- column.setPrimaryKey(true);
column.setType(NdbDictionary::Column::Unsigned);
column.setLength(1);
+ column.setPrimaryKey(true);
column.setNullable(false);
table.addColumn(column);
column.setName("Y");
- column.setPrimaryKey(false);
column.setType(NdbDictionary::Column::Unsigned);
column.setLength(1);
+ column.setPrimaryKey(false);
column.setNullable(false);
table.addColumn(column);