File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1374,9 +1374,9 @@ def safeStringFormat(format_, params):
13741374 retVal = format_ .replace ("%d" , "%s" )
13751375
13761376 if isinstance (params , basestring ):
1377- retVal = retVal .replace ("%s" , params )
1377+ retVal = retVal .replace ("%s" , params , 1 )
13781378 elif not isListLike (params ):
1379- retVal = retVal .replace ("%s" , str (params ))
1379+ retVal = retVal .replace ("%s" , str (params ), 1 )
13801380 else :
13811381 count , index = 0 , 0
13821382 while index != - 1 :
Original file line number Diff line number Diff line change @@ -314,7 +314,7 @@ def searchTable(self):
314314 query = agent .limitQuery (index , query )
315315
316316 foundTbl = unArrayizeValue (inject .getValue (query , union = False , error = False ))
317- if not isNoneValue (foundTbls [ db ] ):
317+ if not isNoneValue (foundTbl ):
318318 kb .hintValue = foundTbl
319319 foundTbl = safeSQLIdentificatorNaming (foundTbl , True )
320320 foundTbls [db ].append (foundTbl )
You can’t perform that action at this time.
0 commit comments