1 /* call execute without calling prepare. it should fail.
3 * Author : Jitendra Lenka
6 #include<AbsSqlStatement.h>
12 AbsSqlConnection
*con
= SqlFactory :: createConnection(CSql
);
13 rv
= con
->connect("root","manager");
16 AbsSqlStatement
*stmt
= SqlFactory :: createStatement(CSql
);
17 stmt
->setConnection(con
);
20 strcpy(statement
,"CREATE TABLE T1(F1 INT,F2 INT);");
23 /*rv = stmt->prepare(statement);
31 rv
= stmt
->execute(rows
);
37 printf("Execute failed without call prepare\n");
41 printf("Test script failed\n");