bugfix
This commit is contained in:
parent
34421ed2d3
commit
94bf65620f
@ -199,10 +199,10 @@ class DBPools:
|
|||||||
try:
|
try:
|
||||||
yield sqlor
|
yield sqlor
|
||||||
except:
|
except:
|
||||||
if if sqlor and sqlor.dataChanged:
|
if sqlor and sqlor.dataChanged:
|
||||||
sqlor.rollback()
|
sqlor.rollback()
|
||||||
finally:
|
finally:
|
||||||
if sif sqlor and qlor.dataChanged:
|
if sqlor and qlor.dataChanged:
|
||||||
sqlor.commit()
|
sqlor.commit()
|
||||||
await self.freeSqlor(sqlor)
|
await self.freeSqlor(sqlor)
|
||||||
|
|
||||||
|
@ -198,7 +198,7 @@ class SQLor(object):
|
|||||||
|
|
||||||
return (m_sql,newdata)
|
return (m_sql,newdata)
|
||||||
|
|
||||||
def getSQLType(self,sql):
|
def getSqlType(self,sql):
|
||||||
"""
|
"""
|
||||||
return one of "qry", "dml" and "ddl"
|
return one of "qry", "dml" and "ddl"
|
||||||
ddl change the database schema
|
ddl change the database schema
|
||||||
|
Loading…
Reference in New Issue
Block a user