Skip to content

Commit

Permalink
Pass datetime objects to sqlalchemy. Credit to Benjamin Wilson. Closes
Browse files Browse the repository at this point in the history
  • Loading branch information
onyxfish committed Jan 11, 2012
1 parent 66b92a8 commit 511eaa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csvkit/utilities/csvsql.py
Expand Up @@ -56,7 +56,7 @@ def main(self):
insert = sql_table.insert()
headers = csv_table.headers()

for row in csv_table.to_rows(serialize_dates=True):
for row in csv_table.to_rows():
engine.execute(insert, [dict(zip(headers, row)), ])

# Writing to file
Expand Down

0 comments on commit 511eaa5

Please sign in to comment.