*** empty log message ***
[csql.git] / test / system / trans / insert1andAbort.c
blob778e0cb0a0e66e6b1b890f64f751bb4cba81fb27
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 conn.startTransaction();
12 ret = insertTuple(dbMgr, conn, "t1", 1);
13 conn.rollback();
14 conn.close();
15 return ret;