diff options
Diffstat (limited to 'dumpdbfields.py')
-rw-r--r-- | dumpdbfields.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dumpdbfields.py b/dumpdbfields.py index 131cfa3..5de925d 100644 --- a/dumpdbfields.py +++ b/dumpdbfields.py | |||
@@ -20,8 +20,10 @@ def main(): | |||
20 | tab.dump(args) | 20 | tab.dump(args) |
21 | print("nr=%d" % db.nrofrecords()) | 21 | print("nr=%d" % db.nrofrecords()) |
22 | i = 0 | 22 | i = 0 |
23 | for rec in db.enumerate_records(tab): | 23 | for sysnum, rec in db.enumerate_records(tab): |
24 | # beware to skip tab.fields[0], which is the 'sysnum' | 24 | # beware to skip tab.fields[0], which is the 'sysnum' |
25 | # since the rec does not include the sysnum. | ||
26 | print(">> %s -- %s" % (tab.fields[0], sysnum)) | ||
25 | for field, fielddef in zip(rec, tab.fields[1:]): | 27 | for field, fielddef in zip(rec, tab.fields[1:]): |
26 | print(">> %s -- %s" % (fielddef, asasc(field))) | 28 | print(">> %s -- %s" % (fielddef, asasc(field))) |
27 | i += 1 | 29 | i += 1 |