add .gitignore
[ftsbench.git] / utils.c
diff --git a/utils.c b/utils.c
index 213f2fb..ccbc42d 100644 (file)
--- a/utils.c
+++ b/utils.c
@@ -50,10 +50,8 @@ sb_add(StringBuf *b, char *s, int length)
                        b->str = (char*)realloc( b->str, sizeof(char) * b->length );
                }
 
-               if (!b->str) {
-                       fprintf(stderr,"Not enough memory (%d bytes)\n", b->length);
-                       exit(1);
-               }
+               if (!b->str) 
+                       fatal("Not enough memory (%d bytes)\n", b->length);
        }
 
        memcpy(b->str + b->strlen, s, length);
@@ -87,8 +85,8 @@ printScheme() {
        fputs(
                "--summary stats\n"
                "CREATE TABLE fb_search (\n"
-               "  id       integer        NOT NULL,\n"
                "--link to fb_create.id\n"
+               "  id       integer        NOT NULL,\n"
                "  f_and    boolean    NOT NULL,\n"
                "  f_or     boolean    NOT NULL,\n"
                "  nclients integer    NOT NULL,\n"
@@ -107,7 +105,7 @@ printScheme() {
                "  f_and    boolean    NOT NULL,\n"
                "  f_or     boolean    NOT NULL,\n"
                "  nclients integer    NOT NULL,\n"
-               "  query        text       NOT NULL,\n"
+               "  query    text       NOT NULL,\n"
                "  nres     integer    NOT NULL,\n"
                "  elapsed  double precision NOT NULL\n"
                ");\n",