activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r784862 - in /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc: ./ adapter/
Date Mon, 15 Jun 2009 16:58:15 GMT
Author: dejanb
Date: Mon Jun 15 16:58:14 2009
New Revision: 784862

URL: http://svn.apache.org/viewvc?rev=784862&view=rev
Log:
fix for https://issues.apache.org/activemq/browse/AMQ-2291 - jdbc sequence changed to long

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/Statements.java
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/AxionJDBCAdapter.java
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/InformixJDBCAdapter.java
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/MaxDBJDBCAdapter.java
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/OracleJDBCAdapter.java
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/SybaseJDBCAdapter.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/Statements.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/Statements.java?rev=784862&r1=784861&r2=784862&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/Statements.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/Statements.java
Mon Jun 15 16:58:14 2009
@@ -30,7 +30,7 @@
     protected String binaryDataType = "BLOB";
     protected String containerNameDataType = "VARCHAR(250)";
     protected String msgIdDataType = "VARCHAR(250)";
-    protected String sequenceDataType = "INTEGER";
+    protected String sequenceDataType = "BIGINT";
     protected String longDataType = "BIGINT";
     protected String stringIdDataType = "VARCHAR(250)";
     protected boolean useExternalMessageReferences;

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/AxionJDBCAdapter.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/AxionJDBCAdapter.java?rev=784862&r1=784861&r2=784862&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/AxionJDBCAdapter.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/AxionJDBCAdapter.java
Mon Jun 15 16:58:14 2009
@@ -56,6 +56,7 @@
         statements.setCreateSchemaStatements(createStatements);
         statements.setDeleteOldMessagesStatement("DELETE FROM " + statements.getFullMessageTableName()
+ " WHERE ( EXPIRATION<>0 AND EXPIRATION<?)");
         statements.setLongDataType("LONG");
+        statements.setSequenceDataType("LONG");
         
         super.setStatements(statements);
     }

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/InformixJDBCAdapter.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/InformixJDBCAdapter.java?rev=784862&r1=784861&r2=784862&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/InformixJDBCAdapter.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/InformixJDBCAdapter.java
Mon Jun 15 16:58:14 2009
@@ -32,6 +32,7 @@
         statements.setContainerNameDataType("VARCHAR(150)");
         statements.setStringIdDataType("VARCHAR(150)");
         statements.setLongDataType("INT8");
+        statements.setSequenceDataType("INT8");
         statements.setBinaryDataType("BYTE");
         super.setStatements(statements);
     }

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/MaxDBJDBCAdapter.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/MaxDBJDBCAdapter.java?rev=784862&r1=784861&r2=784862&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/MaxDBJDBCAdapter.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/MaxDBJDBCAdapter.java
Mon Jun 15 16:58:14 2009
@@ -28,6 +28,7 @@
         statements.setStringIdDataType("VARCHAR(250) ASCII");
         statements.setContainerNameDataType("VARCHAR(250) ASCII");
         statements.setLongDataType("INTEGER");
+        statements.setSequenceDataType("INTEGER");
         super.setStatements(statements);
     }
 

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/OracleJDBCAdapter.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/OracleJDBCAdapter.java?rev=784862&r1=784861&r2=784862&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/OracleJDBCAdapter.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/OracleJDBCAdapter.java
Mon Jun 15 16:58:14 2009
@@ -46,6 +46,7 @@
 
     public void setStatements(Statements statements) {
         statements.setLongDataType("NUMBER");
+        statements.setSequenceDataType("NUMBER");
         super.setStatements(statements);
     }
     

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/SybaseJDBCAdapter.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/SybaseJDBCAdapter.java?rev=784862&r1=784861&r2=784862&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/SybaseJDBCAdapter.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/SybaseJDBCAdapter.java
Mon Jun 15 16:58:14 2009
@@ -28,6 +28,7 @@
         statements.setLockCreateStatement("LOCK TABLE " + statements.getFullLockTableName()
+ " IN EXCLUSIVE MODE");
 
         statements.setLongDataType("DECIMAL");
+        statements.setSequenceDataType("DECIMAL");
         super.setStatements(statements);
     }
 }



Mime
View raw message