memory leak fixes
[csql.git] / test / sqlapi / Connect / conntest8.c
blob0c1c5c59c9118c1e3c8be8673c4812ccb188ea3a
1 // Pass incorrect user name and 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("root123","manager123");
12 if(rv==OK)
14 printf("Test script failed with error%d\n",rv);
15 return 1;
17 printf("Connection failed dueto incorrect user anme and password\n");
18 printf("Test script passed\n");
19 delete con;
20 return 0;