From bd4845d96352cdd105b840983d5f7e78c4c0c2a6 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 22 Oct 2019 15:07:16 +0800 Subject: [PATCH] bugfix --- sqlor/crud.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sqlor/crud.py b/sqlor/crud.py index ee8cd5a..1a6014c 100755 --- a/sqlor/crud.py +++ b/sqlor/crud.py @@ -56,7 +56,7 @@ class CRUD(object): """ fields information """ - @self.pool.inSQLor + @self.pool.inSqlor async def main(dbname,NS,**kw): pkdata = await self.primaryKey(**kw) pks = [ i.field_name for i in pkdata ] @@ -195,7 +195,7 @@ class CRUD(object): } return sqldesc - @self.pool.inSQLor + @self.pool.inSqlor async def main(dbname,NS,**kw): fields = await self.pool.getTableFields(self.dbname,self.tablename,**kw) flist = [ f['name'] for f in fields ] @@ -257,7 +257,7 @@ class CRUD(object): } return sqldesc - @self.pool.inSQLor + @self.pool.inSqlor async def main(dbname,NS,**kw): p = await self.primaryKey(**kw) if NS.get('__id') is not None: @@ -297,7 +297,7 @@ class CRUD(object): } return sqldesc - @self.pool.inSQLor + @self.pool.inSqlor async def main(dbname,NS,**kw): pk = await self.primaryKey(**kw) pkfields = [k.field_name for k in pk ] @@ -322,7 +322,7 @@ class CRUD(object): } return sqldesc - @self.pool.inSQLor + @self.pool.inSqlor async def main(dbname,NS,**kw): data = self.oa.execute(self.dbname+'_'+self.tablename,'beforeDelete',data) await delete(self.dbname,data,pkfields,**kw)