Suuports clang compiler
[anna.git] / example / dbms.mysql / insert / main.c
index 4587f5c..f3ffd16 100644 (file)
@@ -1,3 +1,4 @@
+#include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
 
@@ -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;
 }