diff --git a/sqlor/sor.py b/sqlor/sor.py index 3a09344..002dde5 100755 --- a/sqlor/sor.py +++ b/sqlor/sor.py @@ -604,7 +604,7 @@ class SQLor(object): fields = [ i['name'] for i in desc['fields'] if i['name'] in keys ] fns = ','.join(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) async def R(self,tablename,ns,filters=None):