bugfix
This commit is contained in:
parent
999b2a3f73
commit
32733db363
@ -1,5 +1,5 @@
|
|||||||
aiomysql
|
aiomysql
|
||||||
mysql-connector
|
PyMySQL
|
||||||
aiosqlite
|
aiosqlite
|
||||||
asyncio
|
asyncio
|
||||||
jinja2
|
jinja2
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# -*- coding:utf8 -*-
|
# -*- coding:utf8 -*-
|
||||||
from mysql import connector
|
import pymysql
|
||||||
from appPublic.argsConvert import ArgsConvert,ConditionConvert
|
from appPublic.argsConvert import ArgsConvert,ConditionConvert
|
||||||
|
|
||||||
from .sor import SQLor
|
from .sor import SQLor
|
||||||
@ -50,7 +50,7 @@ class MySqlor(SQLor):
|
|||||||
}
|
}
|
||||||
@classmethod
|
@classmethod
|
||||||
def isMe(self,name):
|
def isMe(self,name):
|
||||||
if name=='mysql.connector':
|
if name=='pymysql'
|
||||||
return True
|
return True
|
||||||
if name=='aiomysql':
|
if name=='aiomysql':
|
||||||
return True
|
return True
|
||||||
@ -62,7 +62,7 @@ class MySqlor(SQLor):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def _opendb(self):
|
def _opendb(self):
|
||||||
self.conn = connector.connect(**self.dbdesc['kwargs'])
|
self.conn = pymysql.connect(**self.dbdesc['kwargs'])
|
||||||
|
|
||||||
def placeHolder(self,varname,pos=None):
|
def placeHolder(self,varname,pos=None):
|
||||||
if varname=='__mainsql__' :
|
if varname=='__mainsql__' :
|
||||||
|
Loading…
Reference in New Issue
Block a user