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
core reorg
[csql.git]
/
test
/
system
/
trans
/
create.c
blob
2fa248b9d6b313f460705797310ce813e94261d2
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
if
(
createTable
(
dbMgr
,
"t1"
) !=
0
) {
ret
=
3
; }
12
13
conn
.
close
();
14
return
ret
;
15
16
}