This commit is contained in:
yumoqing 2024-06-12 18:04:25 +08:00
parent e6d90ac6a8
commit 023999cf0d

View File

@ -604,7 +604,7 @@ class SQLor(object):
fields = [ i['name'] for i in desc['fields'] if i['name'] in keys ] fields = [ i['name'] for i in desc['fields'] if i['name'] in keys ]
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.%s) values (%s)' % (self.dbname, tablename, tablename,fns,vfns) sql = 'insert into %s.%s (%s) values (%s)' % (self.dbname, 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):