start only if sql server if turned on in csql.conf file
[csql.git] / test / dbapi / Connection / conntest2.c
blob44d856f3362df80a405d75107f8d1ae0e74dea2a
1 // Make sure the server is not running
3 #include<CSql.h>
5 int main()
7 Connection conn;
8 DbRetVal rv = conn.open("root", "manager");
9 if (rv == OK) {
10 printf("The server must be running. Stop the server and rerun the test\n");
11 printf("Test failed\n");
12 return 1;
14 if (rv != OK) {
15 printf("The test passed, return value %d\n", rv);
16 return 0;