1 /* close the connection and call prepare ,it should fail
3 * Author : Jitendra Lenka
11 AbsSqlConnection
*con
= createConnection();
12 rv
= con
->connect("root","manager");
14 printf("Connection opened\n");
15 AbsSqlStatement
*stmt
= createStatement();
16 stmt
->setConnection(con
);
18 strcpy(statement
,"CREATE TABLE T1(F1 INT);");
20 rv
= con
->disconnect();
22 printf("Connection closed\n");
23 rv
= stmt
->prepare(statement
);
25 delete stmt
; delete con
;
26 printf("Test script failed\n");
29 printf("Test script passed\n");
30 delete stmt
; delete con
;