# HG changeset patch # User jjohnson # Date 1443878588 14400 # Node ID 24f0911f75eec478af2fb34ec508bd253289698a # Parent 763c4f968dc6044c112fa586e0220f79169478d1 Uploaded diff -r 763c4f968dc6 -r 24f0911f75ee query_tabular.py --- a/query_tabular.py Thu Oct 01 09:50:16 2015 -0400 +++ b/query_tabular.py Sat Oct 03 09:23:08 2015 -0400 @@ -103,6 +103,7 @@ c.close() except Exception, e: print >> sys.stderr, 'Failed: %s' % (e) + exit(1) def __main__(): #Parse Command Line @@ -175,6 +176,7 @@ outputFile.write("%s\n" % '\t'.join([str(val) for val in row])) except Exception, exc: print >> sys.stderr, "Error: %s" % exc + exit(1) if __name__ == "__main__": __main__() diff -r 763c4f968dc6 -r 24f0911f75ee query_tabular.xml --- a/query_tabular.xml Thu Oct 01 09:50:16 2015 -0400 +++ b/query_tabular.xml Sat Oct 03 09:23:08 2015 -0400 @@ -28,7 +28,8 @@ -t ${tbl.table}=${tname}${$col_names} #end for #if $query: - -q "$query" + -q "$query" + $no_header -o $output #end if ]]> @@ -53,6 +54,8 @@ ^(?i)\s*select\s+.*\s+from\s+.*$ + +