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