2 Close the connection and call prepare ,it should fail
10 AbsSqlConnection
*con
= createConnection();
11 rv
= con
->connect("root","manager");
16 printf("Connection opened\n");
17 AbsSqlStatement
*stmt
= createStatement();
18 stmt
->setConnection(con
);
20 strcpy(statement
,"CREATE TABLE T1(F1 INT);");
23 rv
= con
->disconnect();
28 printf("Connection closed\n");
30 rv
= stmt
->prepare(statement
);
32 delete stmt
; delete con
;
33 printf("Test script failed\n");
36 printf("Prepare failed after closing connection\n");
37 printf("Test script passed\n");
39 delete stmt
; delete con
;