Index: agent/dlgStep.cpp
===================================================================
--- agent/dlgStep.cpp	(revision 7798)
+++ agent/dlgStep.cpp	(working copy)
@@ -288,6 +288,11 @@
 				connstr = wxT("''");
 			}
         }
+        else
+        {
+            db = wxT("''");
+            connstr = wxT("''");
+        }
 
         sql = wxT("INSERT INTO pgagent.pga_jobstep (jstid, jstjobid, jstname, jstdesc, jstenabled, jstkind, jstonerror, jstcode, jstdbname");
         if (hasConnStrSupport)
