change cursor's encoding to 'utf8'

This commit is contained in:
Tyrone-Zhao 2018-09-22 14:12:11 +08:00
parent 7f53f2ab68
commit c124d53aff

View file

@ -167,7 +167,7 @@ class SQLDatabase(Database):
.. warning: .. warning:
This will result in a loss of data This will result in a loss of data
""" """
with self.cursor() as cur: with self.cursor(charset="utf8") as cur:
cur.execute(self.DROP_FINGERPRINTS) cur.execute(self.DROP_FINGERPRINTS)
cur.execute(self.DROP_SONGS) cur.execute(self.DROP_SONGS)