4 //test with default value for isUnique of IndexInitInfo
8 DbRetVal rv
= conn
.open("root", "manager");
9 if (rv
!= OK
) return 1;
10 DatabaseManager
*dbMgr
= conn
.getDatabaseManager();
11 if (dbMgr
== NULL
) { printf("Auth failed\n"); return 2;}
13 if ( createTable(dbMgr
) != 0 ) { conn
.close(); return 3; }
14 if ( createIndex(dbMgr
, false) != 0 ) { dbMgr
->dropTable("t1");conn
.close(); return 4;
16 int inscount
= insertTupleWithSameValue(dbMgr
, conn
);
17 if (inscount
!= 10 ) { dbMgr
->dropTable("t1"); conn
.close(); return 5; }
18 dbMgr
->dropTable("t1");