Minor bug fix and improvement in displaying of enumerated columns in --dump -C

This commit is contained in:
Bernardo Damele 2010-01-09 21:37:44 +00:00
parent dc04fa7f06
commit 12f371cd65

View File

@ -139,13 +139,18 @@ class Dump:
for db, tblData in dbs.items(): for db, tblData in dbs.items():
for tbl, colData in tblData.items(): for tbl, colData in tblData.items():
for col in colData: for col, dataType in colData.items():
if column in col: if column in col:
if db in printDbs: if db in printDbs:
printDbs[db][tbl] = colData if tbl in printDbs[db]:
printDbs[db][tbl][col] = dataType
else:
printDbs[db][tbl] = { col: dataType }
else: else:
printDbs[db] = { tbl: colData } printDbs[db] = {}
break printDbs[db][tbl] = { col: dataType }
continue
self.dbTableColumns(printDbs) self.dbTableColumns(printDbs)