Adding test scripts and expected output files
[csql.git] / test / dbapi / Connection / conntest4.c
blob66b4c4c681aeaecbfbc9ec825441b11cc21c2b73
1 //open connection
2 //close it and reopen the connection using the same object
3 //It should pass
5 #include<CSql.h>
6 int main()
8 Connection conn;
9 DbRetVal rv=conn.open("praba","manager");
10 if(rv!=OK)
12 return 1;
14 rv=conn.close();
15 if(rv!=OK)
17 return 2;
19 rv=conn.open("praba","manager");
20 if(rv!=OK)
22 return 3;
24 printf("test 3 passed return value %d\n",rv);
25 return 0;