This has following fixes.
[csql.git] / test / dbapi / Connection / conntest1.c
blob7990154536424ae5fa0923c49703919e8824f838
1 #include<CSql.h>
2 int main()
4 Connection conn;
5 DbRetVal rv = conn.open("wrongusername", "manager");
6 if (rv == OK)
8 conn.close();
9 return 1;
11 printf("wrong username test passed Return value %d \n", rv);
12 rv = conn.open("root", "wrongpasswd");
13 if (rv == OK)
15 conn.close();
16 return 2;
18 printf("wrong password test passed Return value %d \n", rv);
19 conn.close();
20 return 0;