File Removed
[csql.git] / test / sqlnetwork / Connect / conntest8.c
blobd7cb8864ed8325e4feac8d6c8fc5e21c591288aa
1 // Pass incorrect user name and password ,it should fail.
3 // Author : Jitendra Lenkla
5 #include<SqlNwConnection.h>
6 #include<SqlFactory.h>
7 int main()
9 DbRetVal rv = OK;
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");
15 if(rv==OK)
17 printf("Test script failed with error%d\n",rv);
18 return 1;
20 printf("Connection failed dueto incorrect user anme and password\n");
21 printf("Test script passed\n");
22 delete con;
23 return 0;