yaz-ztest: set named_result_sets flag
[yaz-moved-to-github.git] / ztest / ztest.c
index 7299be0..2d7e13b 100644 (file)
@@ -1,5 +1,5 @@
 /* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2013 Index Data
+ * Copyright (C) Index Data
  * See the file LICENSE for details.
  */
 /** \file
@@ -33,6 +33,7 @@
 #include <yaz/diagbib1.h>
 #include <yaz/otherinfo.h>
 #include <yaz/facet.h>
+#include <yaz/backtrace.h>
 
 #include "ztest.h"
 
@@ -1144,6 +1145,7 @@ bend_initresult *bend_init(bend_initrequest *q)
 
     q->query_charset = "ISO-8859-1";
     q->records_in_same_charset = 0;
+    q->named_result_sets = 1;
 
     return r;
 }
@@ -1158,6 +1160,8 @@ void bend_close(void *handle)
 
 int main(int argc, char **argv)
 {
+    yaz_enable_panic_backtrace(argv[0]);
+
     return statserv_main(argc, argv, bend_init, bend_close);
 }
 /*