1 /* close the connection and call commit, it should fail
3 * Author : Jitendra Lenka
7 #include<AbsSqlStatement.h>
12 AbsSqlConnection
*con
= SqlFactory :: createConnection(CSql
);
13 rv
= con
->connect("root","manager");
15 printf("Connection opened\n");
18 rv
= con
->beginTrans();
21 rv
= con
->disconnect();
22 if(rv
!=OK
)return 3;printf("Connection closed\n");
27 printf("Test script failed\n");
30 printf("After closing the connection, commit failed\n");
31 printf("Test script pased\n");