1 //Should not allow duplicate field names in one table
6 DbRetVal rv
= conn
.open("root", "manager");
7 if (rv
!= OK
) return 1;
8 DatabaseManager
*dbMgr
= conn
.getDatabaseManager();
9 if (dbMgr
== NULL
) { printf("Auth failed\n"); return 2;}
13 tabDef
.addField("f1", typeInt
, 0, NULL
, true);
14 rv
=(DbRetVal
)tabDef
.addField("f1", typeInt
);
17 printf("Test failed with return value %d\n",rv
);
20 printf("test passed\n");
21 dbMgr
->createTable("t1", tabDef
);
22 dbMgr
->dropTable("t1");
27 //3298:3086821072:TableDef.cxx:40:Field f_1 already Exists
28 //Table created with field name f_1 only