*** empty log message ***
[csql.git] / test / dbapi / Connection / conntest3.c
blob1468d36b30fcb370a8248f5c7bc7083e4f948f5b
1 //Open connection twice using the same object without closing the connection inbetween.
2 // Is should fail.
4 #include<CSql.h>
5 int main()
7 Connection conn;
8 DbRetVal rv1 = conn.open("root", "manager");
9 if (rv1!= OK)
11 printf("Unable to open the database");
12 return 1;
15 DbRetVal rv2 = conn.open("root", "manager");
16 if(rv2==OK)
18 printf("Test failed");
19 return 2;
22 printf("Opening connection twice w/o closing inbetween passed return value %d \n",rv1);
23 return 0;