trie index changes
[csql.git] / test / adapter / Connect / conntest2.c
blob907b6e086348b18fdb3cab7bd3337ee64b647f77
1 //Close the Connection and call commit, it should fail
3 #include"common.h"
4 int main()
6 DbRetVal rv = OK;
7 AbsSqlConnection *con = createConnection();
8 rv = con->connect("root","manager");
9 if(rv!=OK)return 1;
10 printf("Connection opened\n");
12 rv = con->beginTrans();
13 if(rv!=OK)return 2;
15 rv = con->disconnect();
16 if(rv !=OK)return 3;printf("Connection closed\n");
18 rv = con->commit();
19 if(rv==OK)
21 printf("Test script failed\n");
22 return 4;
24 printf("After closing the connection, commit failed\n");
25 printf("Test script pased\n");
26 delete con;
27 return 0;