X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdbms.mysql%2Finsert%2Fmain.c;h=f3ffd1678557f1667eeac741e83560db8ce6ac25;hb=c60abc0742150b5709fcf21ece212d09bc1da268;hp=4587f5cc943f5e5a33093853283d29b1c556bca7;hpb=4e12ac57e93c052f716a6305ad8fc099c45899d1;p=anna.git diff --git a/example/dbms.mysql/insert/main.c b/example/dbms.mysql/insert/main.c index 4587f5c..f3ffd16 100644 --- a/example/dbms.mysql/insert/main.c +++ b/example/dbms.mysql/insert/main.c @@ -1,3 +1,4 @@ +#include #include #include @@ -5,7 +6,7 @@ #define STRING_SIZE 50 -#define INSERT_SAMPLE "insert into nemesis_db_test (xx, yy, zz, tt) values (?,?,?,?)" +#define INSERT_SAMPLE "insert into anna_db_test (xx, yy, zz, tt) values (?,?,?,?)" #define MAXCOLUMN 4 @@ -27,7 +28,7 @@ my_bool is_null[MAXCOLUMN]; int main () { if ((mysql = mysql_init (NULL)) == NULL) - exit (-12); + exit(-12); if (mysql_real_connect (mysql, NULL, "sdp", "sdp", "test", 0, NULL, 0L) == NULL) { fprintf(stderr, " mysql_stmt_prepare(), SELECT failed\n"); @@ -136,4 +137,5 @@ int main () exit(0); } + return 0; }