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
*** empty log message ***
[csql.git]
/
test
/
system
/
Allocator
/
insert1000.c
blob
015c12efba6668a29cb670aaa1d8acc165b45944
1
2
#include
"common.h"
3
int
main
()
4
{
5
Connection conn
;
6
DbRetVal rv
=
conn
.
open
(
"root"
,
"manager"
);
7
if
(
rv
!=
OK
)
return
1
;
8
DatabaseManager
*
dbMgr
=
conn
.
getDatabaseManager
();
9
if
(
dbMgr
==
NULL
) {
printf
(
"Auth failed
\n
"
);
return
2
;}
10
int
ret
=
0
;
11
ret
=
insertTuple
(
dbMgr
,
conn
,
"t1"
,
1000
);
12
conn
.
close
();
13
return
ret
;
14
}