*** empty log message ***
[csql.git] / test / system / Allocator / create.c
blobd6fdc37f8cce87bc5fe7375ecafb827a9ce40f0f
2 #include "common.h"
3 int main()
5 Connection conn;
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;}
10 int ret =0;
11 if ( createTable(dbMgr, "t1") != 0 ) { ret = 3; }
12 if ( createIndex(dbMgr, "t1", "f1", "t1idx1") != 0 ) { ret= 3; }
14 conn.close();
15 return ret;