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
fixing timing issue in test script
[csql.git]
/
test
/
dbapi
/
Connection
/
conntest5.c
blob
57364840307eedb083dbb0fd031abd2478a99e2f
1
//commit a transaction without starting it and it should fail
2
3
#include<CSql.h>
4
int
main
()
5
{
6
Connection conn
;
7
DbRetVal rv
=
conn
.
open
(
"root"
,
"manager"
);
8
if
(
rv
!=
OK
)
return
1
;
9
rv
=
conn
.
commit
();
10
if
(
rv
==
OK
)
11
{
12
printf
(
"test script failed"
);
13
return
2
;
14
}
15
printf
(
"Test script passed return value %d
\n
"
,
rv
);
16
return
0
;
17
}