@@ -2212,35 +2212,35 @@ def searchColumn(self):
22122212 for tbl in conf .tbl .split ("," ):
22132213 values .append ([db , tbl ])
22142214
2215- for foundDb , foundTbl in filterPairValues (values ):
2216- foundDb = safeSQLIdentificatorNaming (foundDb )
2217- foundTbls = foundTbl .split ("," )
2215+ for db , tbl in filterPairValues (values ):
2216+ db = safeSQLIdentificatorNaming (db )
2217+ tbls = tbl .split ("," )
22182218
2219- for foundTbl in foundTbls :
2220- foundTbl = safeSQLIdentificatorNaming (foundTbl , True )
2219+ for tbl in tbls :
2220+ tbl = safeSQLIdentificatorNaming (tbl , True )
22212221
2222- if foundDb is None or foundTbl is None :
2222+ if db is None or tbl is None :
22232223 continue
22242224
2225- conf .db = foundDb
2226- conf .tbl = foundTbl
2225+ conf .db = db
2226+ conf .tbl = tbl
22272227 conf .col = column
22282228
22292229 self .getColumns (onlyColNames = True , colTuple = (colConsider , colCondParam ), bruteForce = False )
22302230
2231- if foundDb in kb .data .cachedColumns and foundTbl in kb .data .cachedColumns [foundDb ]:
2232- if foundDb not in dbs :
2233- dbs [foundDb ] = {}
2231+ if db in kb .data .cachedColumns and tbl in kb .data .cachedColumns [db ]:
2232+ if db not in dbs :
2233+ dbs [db ] = {}
22342234
2235- if foundTbl not in dbs [foundDb ]:
2236- dbs [foundDb ][ foundTbl ] = {}
2235+ if tbl not in dbs [db ]:
2236+ dbs [db ][ tbl ] = {}
22372237
2238- dbs [foundDb ][ foundTbl ].update (kb .data .cachedColumns [foundDb ][ foundTbl ])
2238+ dbs [db ][ tbl ].update (kb .data .cachedColumns [db ][ tbl ])
22392239
2240- if foundDb in foundCols [column ]:
2241- foundCols [column ][foundDb ].append (foundTbl )
2240+ if db in foundCols [column ]:
2241+ foundCols [column ][db ].append (tbl )
22422242 else :
2243- foundCols [column ][foundDb ] = [foundTbl ]
2243+ foundCols [column ][db ] = [tbl ]
22442244
22452245 kb .data .cachedColumns = {}
22462246 else :
0 commit comments