Author: kwsutter
Date: Wed Feb 22 17:26:09 2012
New Revision: 1292404

URL: http://svn.apache.org/viewvc?rev=1292404&view=rev
Log:
OPENJPA-2123.  Just check the value of db2ServerType instead of calling 
isDB2ZOSV8xOrLater().

Modified:
    
openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java

Modified: 
openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java
URL: 
http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java?rev=1292404&r1=1292403&r2=1292404&view=diff
==============================================================================
--- 
openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java
 (original)
+++ 
openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java
 Wed Feb 22 17:26:09 2012
@@ -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);
             }


Reply via email to