This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback (). Original exception was: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely )
This session is in 'prepared' state; no further SQL can be emitted within this transaction.
多个线程周时向数据库中写入数据。 innodb 。 经常出现上面的错误 ,请问如何能解决这个问题?
This session is in 'prepared' state; no further SQL can be emitted within this transaction.
多个线程周时向数据库中写入数据。 innodb 。 经常出现上面的错误 ,请问如何能解决这个问题?