openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwsut...@apache.org
Subject svn commit: r1292411 - /openjpa/branches/2.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java
Date Wed, 22 Feb 2012 17:30:18 GMT
Author: kwsutter
Date: Wed Feb 22 17:30:18 2012
New Revision: 1292411

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

Modified:
    openjpa/branches/2.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java

Modified: openjpa/branches/2.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java
URL: http://svn.apache.org/viewvc/openjpa/branches/2.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java?rev=1292411&r1=1292410&r2=1292411&view=diff
==============================================================================
--- openjpa/branches/2.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java
(original)
+++ openjpa/branches/2.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java
Wed Feb 22 17:30:18 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);
             }



Mime
View raw message