bugfix
This commit is contained in:
parent
e14b9dfce5
commit
aac61c2bb3
@ -1,5 +1,4 @@
|
|||||||
# -*- coding:utf8 -*-
|
# -*- coding:utf8 -*-
|
||||||
import pymysql
|
|
||||||
from appPublic.argsConvert import ArgsConvert,ConditionConvert
|
from appPublic.argsConvert import ArgsConvert,ConditionConvert
|
||||||
|
|
||||||
from .sor import SQLor
|
from .sor import SQLor
|
||||||
@ -52,8 +51,6 @@ class MySqlor(SQLor):
|
|||||||
def isMe(self,name):
|
def isMe(self,name):
|
||||||
if name=='pymysql':
|
if name=='pymysql':
|
||||||
return True
|
return True
|
||||||
if name=='aiomysql':
|
|
||||||
return True
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def grammar(self):
|
def grammar(self):
|
||||||
@ -61,9 +58,6 @@ class MySqlor(SQLor):
|
|||||||
'select':select_stmt,
|
'select':select_stmt,
|
||||||
}
|
}
|
||||||
|
|
||||||
def _opendb(self):
|
|
||||||
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__' :
|
||||||
return ''
|
return ''
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
# fixed sor.py C function bug.
|
# fixed sor.py C function bug.
|
||||||
__version__ = "0.1.2"
|
__version__ = "0.1.3"
|
||||||
# use PyMySQL to replace mysql-connector
|
|
||||||
# __version__ = '0.1.1'
|
|
||||||
|
Loading…
Reference in New Issue
Block a user