From 3e79323c18142fc1bf3f952d15753bf96a302334 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Mon, 20 Aug 2018 11:43:54 -0400 Subject: [PATCH] dump erroring sql --- runner.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/runner.cs b/runner.cs index ab9a096..d60be2e 100644 --- a/runner.cs +++ b/runner.cs @@ -24,7 +24,7 @@ namespace test string msg = "Help:"; msg = msg + Environment.NewLine; - msg = msg + "version 0.13"; + msg = msg + "version 0.14"; msg = msg + Environment.NewLine; msg = msg + "-scs source connection string"; msg = msg + Environment.NewLine; @@ -184,6 +184,7 @@ namespace test ibmc.Close(); pgt.Rollback(); pgc.Close(); + return; } sql = ""; } @@ -197,10 +198,11 @@ namespace test catch (Exception e) { Console.Write(Environment.NewLine); Console.Write(e.Message); + System.IO.File.WriteAllText(@"C:\Users\ptrowbridge\Downloads\runner_error.sql",sql); //ibmc.Close(); pgt.Rollback(); pgc.Close(); - + return; } sql = ""; }