@@ -840,8 +840,8 @@ def getTables(self, bruteForce=None):
840840
841841 return kb .data .cachedTables
842842
843- message = "do you want to use common table existence check? [Y/n/q]"
844- test = readInput (message , default = "Y" )
843+ message = "do you want to use common table existence check? %s" % ( " [Y/n/q]" if Backend . getIdentifiedDbms () in ( DBMS . ACCESS ,) else "[y/N/q]" )
844+ test = readInput (message , default = "Y" if "Y" in message else "N" )
845845
846846 if test [0 ] in ("n" , "N" ):
847847 return
@@ -1060,8 +1060,8 @@ def getColumns(self, onlyColNames=False, colTuple=None, bruteForce=None):
10601060
10611061 return kb .data .cachedColumns
10621062
1063- message = "do you want to use common columns existence check? [Y/n/q]"
1064- test = readInput (message , default = "Y" )
1063+ message = "do you want to use common column existence check? %s" % ( " [Y/n/q]" if Backend . getIdentifiedDbms () in ( DBMS . ACCESS ,) else "[y/N/q]" )
1064+ test = readInput (message , default = "Y" if "Y" in message else "N" )
10651065
10661066 if test [0 ] in ("n" , "N" ):
10671067 return
@@ -1979,8 +1979,8 @@ def searchTable(self):
19791979 bruteForce = True
19801980
19811981 if bruteForce :
1982- message = "do you want to use common table existence check? [Y/n/q]"
1983- test = readInput (message , default = "Y" )
1982+ message = "do you want to use common table existence check? %s" % ( " [Y/n/q]" if Backend . getIdentifiedDbms () in ( DBMS . ACCESS ,) else "[y/N/q]" )
1983+ test = readInput (message , default = "Y" if "Y" in message else "N" )
19841984
19851985 if test [0 ] in ("n" , "N" ):
19861986 return
@@ -2130,8 +2130,8 @@ def searchColumn(self):
21302130 bruteForce = True
21312131
21322132 if bruteForce :
2133- message = "do you want to use common columns existence check? [Y/n/q]"
2134- test = readInput (message , default = "Y" )
2133+ message = "do you want to use common column existence check? %s" % ( " [Y/n/q]" if Backend . getIdentifiedDbms () in ( DBMS . ACCESS ,) else "[y/N/q]" )
2134+ test = readInput (message , default = "Y" if "Y" in message else "N" )
21352135
21362136 if test [0 ] in ("n" , "N" ):
21372137 return
0 commit comments