changing libcsql.so library name to libcsqlstorage.so
[csql.git] / test / sqlapi / Connect / conntest1.c
blob41e421fa6dda03e142b08a43a107fbe3d626a378
1 /* connect ,disconnect and again connect ,it should pass.
3 * AUTHOR : Jitendra Lenka
4 */
6 #include "common.h"
8 int main()
10 DbRetVal rv =OK;
11 AbsSqlConnection *con = createConnection();
12 rv = con->connect("root","manager");
13 if(rv!=OK)return 1;
14 printf("Connection opened\n");
15 delete con;
16 con = createConnection();
17 rv = con->connect("root","manager");
18 if(rv !=OK) {
19 printf("Test script failed \n");
20 return 2;
22 printf("Connection closed\n");
23 printf("Test script passed\n");
24 delete con;
25 return 0;