1 //100 times addField f1 and dropField f1. getFldCount() should return 0
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;}
12 for (int i
=0;i
<100;i
++)
14 tabDef
.addField("f1", typeInt
);
15 tabDef
.dropField("f1");
17 int fieldcount
=tabDef
.getFieldCount();
18 printf("Number of Fields = %d\n",fieldcount
);
19 printf("Test Passed\n");