From d08c9019094151b9420cbe54a148a4c1f54bf16d Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 22 Jun 2022 18:33:11 +0800 Subject: [PATCH] bugfix --- sqlor/sor.py | 2 +- sqlor/version.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sqlor/sor.py b/sqlor/sor.py index 2d0e6d2..1e12ecd 100755 --- a/sqlor/sor.py +++ b/sqlor/sor.py @@ -567,7 +567,7 @@ class SQLor(object): fields = [ i['name'] for i in desc['fields']] fns = ','.join(fields) vfns = ','.join(['${%s}$' % n for n in fields ]) - sql = 'insert into %s (%s.%s) values (%s)' % (self.dbname, tablename,fns,vfns) + sql = 'insert into %s.%s (%s.%s) values (%s)' % (self.dbname, tablename, tablename,fns,vfns) await self.runSQL({'sql_string':sql},ns,None) async def R(self,tablename,ns,filters=None): diff --git a/sqlor/version.py b/sqlor/version.py index 0000823..406ba5a 100644 --- a/sqlor/version.py +++ b/sqlor/version.py @@ -1,2 +1,4 @@ +# fixed sor.py C function bug. +__version__ = 0.1.2 # use PyMySQL to replace mysql-connector -__version__ = '0.1.1' +# __version__ = '0.1.1'