Index: 3rdParty_sources/tacitknowledge/autopatch/src/main/java/com/tacitknowledge/util/migration/jdbc/JdbcMigrationLauncherFactory.java =================================================================== RCS file: /usr/local/cvsroot/3rdParty_sources/tacitknowledge/autopatch/src/main/java/com/tacitknowledge/util/migration/jdbc/Attic/JdbcMigrationLauncherFactory.java,v diff -u -r1.1.2.1 -r1.1.2.2 --- 3rdParty_sources/tacitknowledge/autopatch/src/main/java/com/tacitknowledge/util/migration/jdbc/JdbcMigrationLauncherFactory.java 12 Oct 2014 13:55:02 -0000 1.1.2.1 +++ 3rdParty_sources/tacitknowledge/autopatch/src/main/java/com/tacitknowledge/util/migration/jdbc/JdbcMigrationLauncherFactory.java 12 Oct 2014 14:41:40 -0000 1.1.2.2 @@ -203,7 +203,7 @@ throw new IllegalArgumentException("A jndi context must be " + "present to use this configuration."); } - DataSource ds = (DataSource) ctx.lookup("java:comp/env/" + dataSource); + DataSource ds = (DataSource) ctx.lookup(dataSource); context.setDataSource(ds); log.debug("adding context with datasource " + dataSource + " of type " + databaseType); Index: 3rdParty_sources/tacitknowledge/autopatch/src/main/resources/com/tacitknowledge/util/migration/jdbc/mysql.properties =================================================================== RCS file: /usr/local/cvsroot/3rdParty_sources/tacitknowledge/autopatch/src/main/resources/com/tacitknowledge/util/migration/jdbc/Attic/mysql.properties,v diff -u -r1.1.2.1 -r1.1.2.2 --- 3rdParty_sources/tacitknowledge/autopatch/src/main/resources/com/tacitknowledge/util/migration/jdbc/mysql.properties 12 Oct 2014 13:55:03 -0000 1.1.2.1 +++ 3rdParty_sources/tacitknowledge/autopatch/src/main/resources/com/tacitknowledge/util/migration/jdbc/mysql.properties 12 Oct 2014 14:41:40 -0000 1.1.2.2 @@ -1,4 +1,4 @@ -supportsMultipleStatements=true +supportsMultipleStatements=false patches.create=CREATE TABLE IF NOT EXISTS patches ( \ system_name VARCHAR(30) NOT NULL \ @@ -21,4 +21,4 @@ # the system is currently locked. lock.read=SELECT patch_in_progress FROM patches WHERE system_name = ? AND ( patch_in_progress <> 'F' OR patch_level in ( SELECT MAX(patch_level) FROM patches WHERE system_name = ? )) lock.obtain=UPDATE patches SET patch_in_progress = 'T' WHERE system_name = ? AND patch_in_progress = 'F' AND patch_level in ( SELECT max_patch_level FROM (SELECT MAX(patch_level) AS max_patch_level FROM patches WHERE system_name = ? ) AS tmptable ) -lock.release=UPDATE patches SET patch_in_progress = 'F' WHERE system_name = ? AND patch_in_progress <> 'F' \ No newline at end of file +lock.release=UPDATE patches SET patch_in_progress = 'F' WHERE system_name = ? AND patch_in_progress <> 'F' Index: 3rdParty_sources/tacitknowledge/autopatch/src/test/java/com/tacitknowledge/util/migration/jdbc/DatabaseTypeTest.java =================================================================== RCS file: /usr/local/cvsroot/3rdParty_sources/tacitknowledge/autopatch/src/test/java/com/tacitknowledge/util/migration/jdbc/Attic/DatabaseTypeTest.java,v diff -u -r1.1.2.1 -r1.1.2.2 --- 3rdParty_sources/tacitknowledge/autopatch/src/test/java/com/tacitknowledge/util/migration/jdbc/DatabaseTypeTest.java 12 Oct 2014 13:54:59 -0000 1.1.2.1 +++ 3rdParty_sources/tacitknowledge/autopatch/src/test/java/com/tacitknowledge/util/migration/jdbc/DatabaseTypeTest.java 12 Oct 2014 14:41:40 -0000 1.1.2.2 @@ -54,7 +54,7 @@ * is what we expect before we override it. */ String type = "mysql"; - String dbTypeExpectedValue="true"; + String dbTypeExpectedValue="false"; DatabaseType databaseType = new DatabaseType(type); Properties dbProperties = new Properties(); Index: 3rdParty_sources/tacitknowledge/autopatch/src/test/java/com/tacitknowledge/util/migration/jdbc/WebAppServletContextFactoryTest.java =================================================================== RCS file: /usr/local/cvsroot/3rdParty_sources/tacitknowledge/autopatch/src/test/java/com/tacitknowledge/util/migration/jdbc/Attic/WebAppServletContextFactoryTest.java,v diff -u -r1.1.2.1 -r1.1.2.2 --- 3rdParty_sources/tacitknowledge/autopatch/src/test/java/com/tacitknowledge/util/migration/jdbc/WebAppServletContextFactoryTest.java 12 Oct 2014 13:54:59 -0000 1.1.2.1 +++ 3rdParty_sources/tacitknowledge/autopatch/src/test/java/com/tacitknowledge/util/migration/jdbc/WebAppServletContextFactoryTest.java 12 Oct 2014 14:41:40 -0000 1.1.2.2 @@ -76,7 +76,7 @@ sc.setInitParameter("migration.readonly", "true"); sc.setInitParameter("migration.databasetype", dbType); sc.setInitParameter("migration.patchpath", "patches"); - sc.setInitParameter("migration.datasource", "jdbc/testsource"); + sc.setInitParameter("migration.datasource", "java:comp/env/jdbc/testsource"); MockDataSource ds = new MockDataSource(); InitialContext context = new InitialContext(); @@ -119,9 +119,9 @@ sc.setInitParameter("migration.readonly", "true"); sc.setInitParameter("migration.jdbc.systems", "system1,system2"); sc.setInitParameter("migration.system1.databasetype", dbType1); - sc.setInitParameter("migration.system1.datasource", "jdbc/testsource1"); + sc.setInitParameter("migration.system1.datasource", "java:comp/env/jdbc/testsource1"); sc.setInitParameter("migration.system2.databasetype", dbType2); - sc.setInitParameter("migration.system2.datasource", "jdbc/testsource2"); + sc.setInitParameter("migration.system2.datasource", "java:comp/env/jdbc/testsource2"); sc.setInitParameter("migration.patchpath", "patches"); MockDataSource ds = new MockDataSource();