The caching of the prepared statement for updating the last ack was wrong.

Reported at http://www.nabble.com/Is-this-a-bug-in-DefaultJDBCAdapter.java--tf1890445s2354.html#a5170127


git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@588767 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2007-10-26 20:20:25 +00:00
parent 0e7162509d
commit 582f3401fa
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ public class DefaultJDBCAdapter implements JDBCAdapter {
public void doSetLastAck(TransactionContext c, ActiveMQDestination destination, String clientId,
String subscriptionName, long seq) throws SQLException, IOException {
PreparedStatement s = c.getAddMessageStatement();
PreparedStatement s = c.getUpdateLastAckStatement();
try {
if (s == null) {
s = c.getConnection().prepareStatement(statements.getUpdateLastAckOfDurableSubStatement());