待辦事項 #25093

Prepared statements are invalidated by manual commit

啟用日期: 2011-05-06 23:02 最後更新: 2011-05-10 13:27

回報者:
(匿名)
負責人:
(無)
類型:
狀態:
關閉
元件:
(無)
里程碑:
(無)
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
檔案:

細節

The following steps always throw a SQLException:

1. Set autocommit to false 2. Prepare one or more statements 3. Execute a prepared update statement 4. Commit (via Connection.commit()) 5. Try to bind and re-use a previously-prepared statement

It works fine with autocommit enabled. The problem can be worked around by recreating prepared statements after commit (or rollback) but this impacts performance.

Ticket History (2/2 Histories)

2011-05-06 23:02 Updated by: None
  • New Ticket "Prepared statements are invalidated by manual commit" created
2011-05-10 13:27 Updated by: calico
  • 狀態 Update from 開啟 to 關閉
  • Ticket Close date is changed to 2011-05-10 13:27
評語

It's a feature.

Attachment File List

No attachments

編輯

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » 登入