1 //Close the connection and call prepare ,it should be failed
7 AbsSqlConnection
*con
= createConnection();
8 rv
= con
->connect("root","manager");
10 printf("Connection opened\n");
12 AbsSqlStatement
*stmt
= createStatement();
13 stmt
->setConnection(con
);
15 strcpy(statement
,"CREATE TABLE t1(f1 INT);");
18 rv
= con
->disconnect();
20 printf("Connection closed\n");
22 rv
= stmt
->prepare(statement
);
28 printf("Test script failed\n");
31 printf("Test script passed\n");