adding test scripts
[csql.git] / test / sqlapi / Connect / conntest6.c
blob4b032cdf2ef7d28d1ac2215e57b2c70b66cb7d8a
1 /* connect twice without closing the connection,
2 * second conection should return "user already logged in".
4 * Author : Jitendra lenka
5 */
7 #include"common.h"
9 int main()
11 DbRetVal rv = OK;
12 AbsSqlConnection *con = createConnection();
13 rv = con->connect("root","manager");
14 if(rv !=OK)return 1;
15 printf("Connection opened\n");
16 rv = con->connect("root","manager");
17 if(rv==OK) {
18 printf("testscript failed\n");
19 return 1;
21 printf("Test script passed\n");
22 delete con;
23 return 0;