]> andersk Git - moira.git/blobdiff - backup/db2rest.awk
Bomb out with an error message if something goes wrong. Duh!
[moira.git] / backup / db2rest.awk
index 521d417ff67584348417a293ac2f34d90dd372a3..a5b73ca103d17435061ffe67c94853c616bd1fb9 100644 (file)
@@ -11,6 +11,7 @@ BEGIN {
        print "/* Do not edit */\n";
        print "#include <stdio.h>";
        print "EXEC SQL INCLUDE sqlca;";
+       print "EXEC SQL WHENEVER SQLERROR DO dbmserr();";
        print "void parse_nl(), parse_str(FILE *, char *, int), parse_sep();\n";
 
        print "/* This file automatically generated */" > "rest1.pc";
This page took 0.031029 seconds and 4 git commands to generate.