adding test scripts
[csql.git] / test / sqlapi / Connect / conntest8.c
blobfe111c49a70dad57870551379d48d6b7e9b69909
1 // Pass incorrect user name and password ,it should fail.
3 // Author : Jitendra Lenkla
5 #include"common.h"
7 int main()
9 DbRetVal rv = OK;
10 AbsSqlConnection *con = createConnection();
11 rv = con->connect("root123","manager123");
12 if(rv==OK) {
13 printf("Test script failed with error%d\n",rv);
14 return 1;
16 printf("Connection failed dueto incorrect user anme and password\n");
17 printf("Test script passed\n");
18 delete con;
19 return 0;