This commit is contained in:
yumoqing 2022-06-22 18:33:11 +08:00
parent 4cd1b78766
commit d08c901909
2 changed files with 4 additions and 2 deletions

View File

@ -567,7 +567,7 @@ class SQLor(object):
fields = [ i['name'] for i in desc['fields']] fields = [ i['name'] for i in desc['fields']]
fns = ','.join(fields) fns = ','.join(fields)
vfns = ','.join(['${%s}$' % n for n in 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) await self.runSQL({'sql_string':sql},ns,None)
async def R(self,tablename,ns,filters=None): async def R(self,tablename,ns,filters=None):

View File

@ -1,2 +1,4 @@
# fixed sor.py C function bug.
__version__ = 0.1.2
# use PyMySQL to replace mysql-connector # use PyMySQL to replace mysql-connector
__version__ = '0.1.1' # __version__ = '0.1.1'