mirror of https://github.com/apache/activemq.git
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:
parent
0e7162509d
commit
582f3401fa
|
@ -325,7 +325,7 @@ public class DefaultJDBCAdapter implements JDBCAdapter {
|
||||||
|
|
||||||
public void doSetLastAck(TransactionContext c, ActiveMQDestination destination, String clientId,
|
public void doSetLastAck(TransactionContext c, ActiveMQDestination destination, String clientId,
|
||||||
String subscriptionName, long seq) throws SQLException, IOException {
|
String subscriptionName, long seq) throws SQLException, IOException {
|
||||||
PreparedStatement s = c.getAddMessageStatement();
|
PreparedStatement s = c.getUpdateLastAckStatement();
|
||||||
try {
|
try {
|
||||||
if (s == null) {
|
if (s == null) {
|
||||||
s = c.getConnection().prepareStatement(statements.getUpdateLastAckOfDurableSubStatement());
|
s = c.getConnection().prepareStatement(statements.getUpdateLastAckOfDurableSubStatement());
|
||||||
|
|
Loading…
Reference in New Issue