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
Test script for getDatabaseManager() without opening connection object
[csql.git]
/
test
/
dbapi
/
DatabaseManager
/
getdbmanagertest.c
blob
f412ecb3cf646fad43e0a52836dcc80b3e483cff
1
#include<CSql.h>
2
int
main
()
3
{
4
Connection conn
;
5
DatabaseManager
*
dbMgr
=
conn
.
getDatabaseManager
();
6
if
(
dbMgr
!=
NULL
) {
printf
(
"Database found without opening Connection
\n
"
);
printf
(
"Test failed
\n
"
);
return
1
;}
7
printf
(
"Test passed
\n
"
);
8
conn
.
close
();
9
return
0
;
10
}