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
Addding test cases for connection and datatype module.
[csql.git]
/
test
/
system
/
config
/
conftest1.c
blob
b5d804aee3cab887cfc847f9035641a4828607e2
1
#include<CSql.h>
2
int
main
()
3
{
4
Connection conn
;
5
DbRetVal rv
=
OK
;
6
7
os
::
setenv
(
"CSQL_CONFIG_FILE"
,
"/tmp/csql1.conf"
);
8
9
10
rv
=
conn
.
open
(
"praba"
,
"manager"
);
11
if
(
rv
==
OK
)
return
1
;
12
13
rv
=
conn
.
close
();
14
if
(
rv
!=
OK
)
return
2
;
15
return
0
;
16
}