1 /* connect ,disconnect and again connect ,it should pass.
3 * AUTHOR : Jitendra Lenka
6 #include<SqlNwConnection.h>
12 AbsSqlConnection
*con
= new SqlNwConnection();
13 con
->setInnerConnection(NULL
);
14 SqlNwConnection
*conn
= (SqlNwConnection
*)con
;
15 conn
->setHost("localhost", 5678);
16 rv
= con
->connect("root","manager");
18 printf("Connection opened\n");
19 rv
= con
->disconnect();
20 if (rv
!= OK
) { printf("disconnect failed\n"); return 2; }
21 rv
= con
->connect("root","manager");
24 printf("Test script failed \n");
27 printf("Connection opened\n");
28 printf("Test script passed\n");