mirror of https://github.com/apache/activemq.git
fix for https://issues.apache.org/activemq/browse/AMQ-2291 - jdbc sequence changed to long
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@784862 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
07822041b4
commit
78e7221d3e
|
@ -30,7 +30,7 @@ public class Statements {
|
|||
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;
|
||||
|
|
|
@ -56,6 +56,7 @@ public class AxionJDBCAdapter extends StreamJDBCAdapter {
|
|||
statements.setCreateSchemaStatements(createStatements);
|
||||
statements.setDeleteOldMessagesStatement("DELETE FROM " + statements.getFullMessageTableName() + " WHERE ( EXPIRATION<>0 AND EXPIRATION<?)");
|
||||
statements.setLongDataType("LONG");
|
||||
statements.setSequenceDataType("LONG");
|
||||
|
||||
super.setStatements(statements);
|
||||
}
|
||||
|
|
|
@ -32,6 +32,7 @@ public class InformixJDBCAdapter extends BlobJDBCAdapter {
|
|||
statements.setContainerNameDataType("VARCHAR(150)");
|
||||
statements.setStringIdDataType("VARCHAR(150)");
|
||||
statements.setLongDataType("INT8");
|
||||
statements.setSequenceDataType("INT8");
|
||||
statements.setBinaryDataType("BYTE");
|
||||
super.setStatements(statements);
|
||||
}
|
||||
|
|
|
@ -28,6 +28,7 @@ public class MaxDBJDBCAdapter extends DefaultJDBCAdapter {
|
|||
statements.setStringIdDataType("VARCHAR(250) ASCII");
|
||||
statements.setContainerNameDataType("VARCHAR(250) ASCII");
|
||||
statements.setLongDataType("INTEGER");
|
||||
statements.setSequenceDataType("INTEGER");
|
||||
super.setStatements(statements);
|
||||
}
|
||||
|
||||
|
|
|
@ -46,6 +46,7 @@ public class OracleJDBCAdapter extends BlobJDBCAdapter {
|
|||
|
||||
public void setStatements(Statements statements) {
|
||||
statements.setLongDataType("NUMBER");
|
||||
statements.setSequenceDataType("NUMBER");
|
||||
super.setStatements(statements);
|
||||
}
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@ public class SybaseJDBCAdapter extends ImageBasedJDBCAdaptor {
|
|||
statements.setLockCreateStatement("LOCK TABLE " + statements.getFullLockTableName() + " IN EXCLUSIVE MODE");
|
||||
|
||||
statements.setLongDataType("DECIMAL");
|
||||
statements.setSequenceDataType("DECIMAL");
|
||||
super.setStatements(statements);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue