Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 45177cf

Browse files
committed
minor restyling
1 parent 16668e1 commit 45177cf

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

plugins/generic/search.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def searchDb(self):
130130
value = safeSQLIdentificatorNaming(value)
131131
foundDbs.append(value)
132132

133-
return foundDbs
133+
conf.dumper.lister("found databases", foundDbs)
134134

135135
def searchTable(self):
136136
bruteForce = False
@@ -329,7 +329,6 @@ def searchColumn(self):
329329
colCond = rootQuery.inband.condition
330330
dbCond = rootQuery.inband.condition2
331331
tblCond = rootQuery.inband.condition3
332-
333332
colConsider, colCondParam = self.likeOrExact("column")
334333

335334
for column in colList:
@@ -535,20 +534,17 @@ def searchColumn(self):
535534
self.dumpFoundColumn(dbs, foundCols, colConsider)
536535

537536
def search(self):
538-
if conf.db and Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.DB2):
537+
if Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.DB2):
539538
for item in ('db', 'tbl', 'col'):
540539
if getattr(conf, item, None):
541540
setattr(conf, item, getattr(conf, item).upper())
542541

543542
if conf.col:
544543
self.searchColumn()
545-
546544
elif conf.tbl:
547545
self.searchTable()
548-
549546
elif conf.db:
550-
conf.dumper.lister("found databases", self.searchDb())
551-
547+
self.searchDb()
552548
else:
553549
errMsg = "missing parameter, provide -D, -T or -C along "
554550
errMsg += "with --search"

0 commit comments

Comments
 (0)