memory leak fixes
[csql.git] / test / sqlapi / Connect / conntest9.c
blobba79c6211ab9109877b1112e6b6dfdc6b5b343c9
1 // Pass correct username and incorrect password ,it should fail.
3 // Author : Jitendra Lenkla
5 #include<AbsSqlStatement.h>
6 #include<SqlFactory.h>
7 int main()
9 DbRetVal rv = OK;
10 AbsSqlConnection *con = SqlFactory::createConnection(CSql);
11 rv = con->connect("root","manager123");
12 if(rv==OK)
14 printf("Test script failed with error%d\n",rv);
15 return 1;
17 printf("Connection is not opened dueto Incorrect password\n");
18 printf("Test script passed\n");
19 delete con;
20 return 0;