dbf-to-sqlite icon indicating copy to clipboard operation
dbf-to-sqlite copied to clipboard

table variable name collision

Open bill-healey opened this issue 6 years ago • 0 comments

https://github.com/simonw/dbf-to-sqlite/blob/2a15c9b6c23550a0fc247e9eaedd693edd909d09/dbf_to_sqlite/cli.py#L23

You re-use the variable table when the original use is still in-scope. This causes a collision when processing multiple DBF files leading to non-sensical table names (table name for the current file is incorrectly set to a long string representing the description of the last table processed)

bill-healey avatar Apr 09 '19 01:04 bill-healey