1 // Pass incorrect user name and password ,it should fail.
3 // Author : Jitendra Lenkla
5 #include<SqlNwConnection.h>
10 AbsSqlConnection
*con
= new SqlNwConnection();
11 con
->setInnerConnection(NULL
);
12 SqlNwConnection
*conn
=(SqlNwConnection
*)con
;
13 conn
->setHost("localhost", 5678);
14 rv
= con
->connect("root123","manager123");
17 printf("Test script failed with error%d\n",rv
);
20 printf("Connection failed dueto incorrect user anme and password\n");
21 printf("Test script passed\n");