[jboss-cvs] JBossAS SVN: r81500 - trunk/server/src/main/org/jboss/ejb/txtimer.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Nov 24 12:17:17 EST 2008
Author: mmillson
Date: 2008-11-24 12:17:16 -0500 (Mon, 24 Nov 2008)
New Revision: 81500
Modified:
trunk/server/src/main/org/jboss/ejb/txtimer/GeneralPurposeDatabasePersistencePlugin.java
Log:
Fix EJB TIMERS table creation for Oracle schema [JBPAPP-1366].
Modified: trunk/server/src/main/org/jboss/ejb/txtimer/GeneralPurposeDatabasePersistencePlugin.java
===================================================================
--- trunk/server/src/main/org/jboss/ejb/txtimer/GeneralPurposeDatabasePersistencePlugin.java 2008-11-24 16:45:23 UTC (rev 81499)
+++ trunk/server/src/main/org/jboss/ejb/txtimer/GeneralPurposeDatabasePersistencePlugin.java 2008-11-24 17:17:16 UTC (rev 81500)
@@ -158,8 +158,10 @@
// Add the primary key constraint using the pk-constraint-template
JDBCFunctionMappingMetaData pkConstraint = typeMapping.getPkConstraintTemplate();
+ String name = SQLUtil.unquote(getTableName(), ds) + "_PK";
+ name = SQLUtil.fixConstraintName(name, ds);
String[] templateParams = new String[] {
- getTableName() + "_PK",
+ name,
getColumnTimerID() + ", " + getColumnTargetID()
};
pkConstraint.getFunctionSql(templateParams, createTableDDL);
More information about the jboss-cvs-commits
mailing list