HenriWahl / dhcpy6d

MAC address aware DHCPv6 server written in Python
https://dhcpy6d.de
GNU General Public License v2.0
94 stars 27 forks source link

Add autocommit to mysql databases. #4

Closed jdieter closed 8 years ago

jdieter commented 8 years ago

I was trying out dhcpy6d and noticed that the leases table wasn't being updated. A mysql select was returning nothing. Looking at the code, I realized that I was using an InnoDB table, which either requires autocommit to be turned on or a commit statement after each set of SQL statements we want run.

I've gone for the easy solution.

HenriWahl commented 8 years ago

Thank you!