From 1cb2f10f6ebac68a64c8b46ffce5691c33c8462f Mon Sep 17 00:00:00 2001 From: "Kevin W. Sutter" Date: Wed, 22 Feb 2012 17:26:09 +0000 Subject: [PATCH] OPENJPA-2123. Just check the value of db2ServerType instead of calling isDB2ZOSV8xOrLater(). git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1292404 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java index 919d3c037..3728b0726 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java @@ -914,7 +914,7 @@ public class DB2Dictionary public void createIndexIfNecessary(Schema schema, DBIdentifier table, Column pkColumn) { - if (isDB2ZOSV8xOrLater()) { + if (db2ServerType == db2ZOSV8xOrLater) { // build the index for the sequence tables // the index name will be the fully qualified table name + _IDX Table tab = schema.getTable(table); @@ -971,7 +971,7 @@ public class DB2Dictionary @Override public void setQueryTimeout(PreparedStatement stmnt, int timeout) throws SQLException { - if(isDB2ZOSV8xOrLater()) { + if (db2ServerType == db2ZOSV8xOrLater) { try { super.setQueryTimeout(stmnt, timeout); }