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
/
conntest6.c
blob
85a95dfb020c85ce70ed5d23391f511ead1444fd
1
//abort a transaction without starting it
2
//it should fail
3
4
#include<CSql.h>
5
int
main
()
6
{
7
Connection conn
;
8
DbRetVal rv
=
conn
.
open
(
"root"
,
"manager"
);
9
if
(
rv
!=
OK
)
return
1
;
10
rv
=
conn
.
rollback
();
11
if
(
rv
!=
OK
)
12
{
13
printf
(
"Test script failed"
);
14
return
2
;
15
}
16
printf
(
"Test script passed return value %d
\n
"
,
rv
);
17
return
0
;
18
}
19