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:
Kevin W. Sutter 2012-02-22 17:26:09 +00:00
parent 1f3f320af3
commit 1cb2f10f6e
1 changed files with 2 additions and 2 deletions

View File

@ -914,7 +914,7 @@ public class DB2Dictionary
public void createIndexIfNecessary(Schema schema, DBIdentifier table, public void createIndexIfNecessary(Schema schema, DBIdentifier table,
Column pkColumn) { Column pkColumn) {
if (isDB2ZOSV8xOrLater()) { if (db2ServerType == db2ZOSV8xOrLater) {
// build the index for the sequence tables // build the index for the sequence tables
// the index name will be the fully qualified table name + _IDX // the index name will be the fully qualified table name + _IDX
Table tab = schema.getTable(table); Table tab = schema.getTable(table);
@ -971,7 +971,7 @@ public class DB2Dictionary
@Override @Override
public void setQueryTimeout(PreparedStatement stmnt, int timeout) public void setQueryTimeout(PreparedStatement stmnt, int timeout)
throws SQLException { throws SQLException {
if(isDB2ZOSV8xOrLater()) { if (db2ServerType == db2ZOSV8xOrLater) {
try { try {
super.setQueryTimeout(stmnt, timeout); super.setQueryTimeout(stmnt, timeout);
} }