with engine.begin() as connection:
正常执行
connection.execute(first_sql)
此句报异常
connection.execute(second_sql)
如上的代码,second_sql 故意设置了 sql 语法错误,但是 first_sql 执行的修改没有回滚,是哪里用的不对吗
正常执行
connection.execute(first_sql)
此句报异常
connection.execute(second_sql)
如上的代码,second_sql 故意设置了 sql 语法错误,但是 first_sql 执行的修改没有回滚,是哪里用的不对吗