pudo / dataset

Easy-to-use data handling for SQL data stores with support for implicit table creation, bulk loading, and transactions.
https://dataset.readthedocs.org/
MIT License
4.78k stars 298 forks source link

Fix race condition when getting column keys of new table #313

Closed Frankkkkk closed 4 years ago

Frankkkkk commented 4 years ago

_columns_keys() sets _columns to {}, but _sync_table() empties _columns when table is empty.

This fixes #312

pudo commented 4 years ago

Wow that was stupid of me. Thanks for the fix!