Skip to content

Commit 3840708

Browse files
committed
marvin: specify the charset as utf8mb4 in dbConnection.py
1 parent 8e933b7 commit 3840708

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎tools/marvin/marvin/dbConnection.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def execute(self, sql=None, params=None, db=None):
4242
port=int(self.port),
4343
user=str(self.user),
4444
password=str(self.passwd),
45+
charset="utf8mb4",
4546
db=str(self.database) if not db else db)) as conn:
4647
conn.autocommit = True
4748
with contextlib.closing(conn.cursor(buffered=True)) as cursor:

0 commit comments

Comments
 (0)