bugfix
This commit is contained in:
parent
34421ed2d3
commit
94bf65620f
@ -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)
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user