This commit is contained in:
yumoqing 2020-05-06 17:50:41 +08:00
parent 34421ed2d3
commit 94bf65620f
2 changed files with 3 additions and 3 deletions

View File

@ -199,10 +199,10 @@ class DBPools:
try:
yield sqlor
except:
if if sqlor and sqlor.dataChanged:
if sqlor and sqlor.dataChanged:
sqlor.rollback()
finally:
if sif sqlor and qlor.dataChanged:
if sqlor and qlor.dataChanged:
sqlor.commit()
await self.freeSqlor(sqlor)

View File

@ -198,7 +198,7 @@ class SQLor(object):
return (m_sql,newdata)
def getSQLType(self,sql):
def getSqlType(self,sql):
"""
return one of "qry", "dml" and "ddl"
ddl change the database schema