From aac61c2bb330b3d875021c8ed986e0476a3372db Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 7 Sep 2022 23:53:47 +0800 Subject: [PATCH] bugfix --- sqlor/mysqlor.py | 6 ------ sqlor/version.py | 4 +--- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/sqlor/mysqlor.py b/sqlor/mysqlor.py index a6a308d..3088771 100755 --- a/sqlor/mysqlor.py +++ b/sqlor/mysqlor.py @@ -1,5 +1,4 @@ # -*- coding:utf8 -*- -import pymysql from appPublic.argsConvert import ArgsConvert,ConditionConvert from .sor import SQLor @@ -52,8 +51,6 @@ class MySqlor(SQLor): def isMe(self,name): if name=='pymysql': return True - if name=='aiomysql': - return True return False def grammar(self): @@ -61,9 +58,6 @@ class MySqlor(SQLor): 'select':select_stmt, } - def _opendb(self): - self.conn = pymysql.connect(**self.dbdesc['kwargs']) - def placeHolder(self,varname,pos=None): if varname=='__mainsql__' : return '' diff --git a/sqlor/version.py b/sqlor/version.py index fedf635..fc9509b 100644 --- a/sqlor/version.py +++ b/sqlor/version.py @@ -1,4 +1,2 @@ # fixed sor.py C function bug. -__version__ = "0.1.2" -# use PyMySQL to replace mysql-connector -# __version__ = '0.1.1' +__version__ = "0.1.3"