repo.or.cz
/
csql.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
File Removed
[csql.git]
/
test
/
dbapi
/
Connection
/
conntest2.c
blob
44d856f3362df80a405d75107f8d1ae0e74dea2a
1
// Make sure the server is not running
2
3
#include<CSql.h>
4
5
int
main
()
6
{
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
;
13
}
14
if
(
rv
!=
OK
) {
15
printf
(
"The test passed, return value %d
\n
"
,
rv
);
16
return
0
;
17
}
18
}