openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mik...@apache.org
Subject svn commit: r772456 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java
Date Wed, 06 May 2009 22:40:43 GMT
Author: mikedd
Date: Wed May  6 22:40:43 2009
New Revision: 772456

URL: http://svn.apache.org/viewvc?rev=772456&view=rev
Log:
OPENJPA-1067. Do not call setQueryTimeout for DB2 on Z/OS

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=772456&r1=772455&r2=772456&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 May  6 22:40:43 2009
@@ -306,6 +306,7 @@
             break;
         case  db2ZOSV8xOrLater:
             // DB2 Z/OS 
+            supportsQueryTimeout = false;  // can only be set to 0 on z/OS
             characterColumnSize = 255;
             lastGeneratedKeyQuery = "SELECT IDENTITY_VAL_LOCAL() FROM "
                 + "SYSIBM.SYSDUMMY1";
@@ -410,7 +411,6 @@
        return (databaseProductVersion.indexOf("DSN") != -1
             || databaseProductName.indexOf("DB2/") == -1)
             && maj >= 8;
-           
     }
 
     public boolean isDB2ISeriesV5R3OrEarlier() {



Mime
View raw message