64 bit build fix
[csql.git] / test / adapter / Connect / conntest1.c
blob3244c3b02771c3a1b63f369073a7e58a415f7d94
1 /* connect ,disconnect and again connect ,it should pass.
3 * AUTHOR : Jitendra Lenka
4 */
6 #include "common.h"
7 int main()
9 DbRetVal rv =OK;
10 AbsSqlConnection *con = createConnection();
11 rv = con->connect("root","manager");
12 if(rv!=OK)return 1;
13 printf("Connection opened\n");
14 delete con;
16 con = createConnection();
17 rv = con->connect("root","manager");
18 if(rv !=OK)
20 printf("Test script failed \n");
21 return 2;
23 printf("Connection closed\n");
24 printf("Test script passed\n");
25 delete con;
26 return 0;