add .gitignore
[ftsbench.git] / utils.c
diff --git a/utils.c b/utils.c
index 5f7c6a9..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);
@@ -107,6 +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"
                "  nres     integer    NOT NULL,\n"
                "  elapsed  double precision NOT NULL\n"
                ");\n",