Ticket #25093

Prepared statements are invalidated by manual commit

Open Date: 2011-05-06 23:02 Last Update: 2011-05-10 13:27

Reporter:
(Anonymous)
Owner:
(None)
Type:
Status:
Closed
Component:
(None)
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
None
File:
None

Details

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
  • Status Update from Open to Closed
  • Ticket Close date is changed to 2011-05-10 13:27
Comment

It's a feature.

Attachment File List

No attachments

Edit

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