Fixes in sql connection hook
This commit is contained in:
parent
879aa66823
commit
a2481580a9
8 changed files with 57 additions and 33 deletions
|
|
@ -44,7 +44,8 @@ class SqlClass:
|
|||
if self.connection['db_type']=='pymysql':
|
||||
|
||||
import pymysql.cursors
|
||||
|
||||
pymysql.install_as_MySQLdb
|
||||
SqlClass.pymysql_install=True
|
||||
SqlClass.cursors_connect=pymysql.cursors.DictCursor
|
||||
else:
|
||||
import MySQLdb.cursors
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue