Navigation Menu

Skip to content

Commit

Permalink
fix for issue #31
Browse files Browse the repository at this point in the history
  • Loading branch information
the4thdoctor committed Oct 20, 2017
1 parent a054ec1 commit a9f3edd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pg_chameleon/lib/mysql_lib.py
Expand Up @@ -30,6 +30,7 @@ def connect_db_buffered(self):
The connection is made using the dictionary type cursor factory, which is buffered.
"""
db_conn = self.source_config["db_conn"]
db_conn = {key:str(value) for key, value in db_conn.items()}
self.conn_buffered=pymysql.connect(
host = db_conn["host"],
user = db_conn["user"],
Expand Down Expand Up @@ -57,6 +58,7 @@ def connect_db_unbuffered(self):
The connection is made using the unbuffered cursor factory.
"""
db_conn = self.source_config["db_conn"]
db_conn = {key:str(value) for key, value in db_conn.items()}
self.conn_unbuffered=pymysql.connect(
host = db_conn["host"],
user = db_conn["user"],
Expand Down

0 comments on commit a9f3edd

Please sign in to comment.