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
string suport <= and >=
[csql.git]
/
test
/
dbapi
/
Connection
/
conntest1.c
blob
7990154536424ae5fa0923c49703919e8824f838
1
#include<CSql.h>
2
int
main
()
3
{
4
Connection conn
;
5
DbRetVal rv
=
conn
.
open
(
"wrongusername"
,
"manager"
);
6
if
(
rv
==
OK
)
7
{
8
conn
.
close
();
9
return
1
;
10
}
11
printf
(
"wrong username test passed Return value %d
\n
"
,
rv
);
12
rv
=
conn
.
open
(
"root"
,
"wrongpasswd"
);
13
if
(
rv
==
OK
)
14
{
15
conn
.
close
();
16
return
2
;
17
}
18
printf
(
"wrong password test passed Return value %d
\n
"
,
rv
);
19
conn
.
close
();
20
return
0
;
21
}