Patch for an Issue #1028

This commit is contained in:
Miroslav Stampar 2014-12-15 09:30:54 +01:00
parent e794c7f246
commit 4c6331daa6

View File

@ -895,7 +895,7 @@ def readInput(message, default=None, checkBatch=True):
elif message[-1] == ']':
message += " "
if kb.prependFlag:
if kb.get("prependFlag"):
message = "\n%s" % message
kb.prependFlag = False
@ -1819,7 +1819,7 @@ def getSQLSnippet(dbms, sfile, **variables):
if choice and choice[0].lower() == "y":
for var in variables:
msg = "insert value for variable '%s': " % var
val = readInput(msg)
val = readInput(msg, default="")
retVal = retVal.replace(r"%%%s%%" % var, val)
return retVal