mirror of https://github.com/apache/openjpa.git
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
This commit is contained in:
parent
1f3f320af3
commit
1cb2f10f6e
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue