提交 75e50284 编写于 作者: T titou10

DB2: SYSCAT.STOGROUPS.CACHINGTIER is declared "Integer" in the infocenter but...

DB2: SYSCAT.STOGROUPS.CACHINGTIER is declared "Integer" in the infocenter but Varchar in the catalog...
上级 15d2afd6
......@@ -45,7 +45,7 @@ public class DB2StorageGroup extends DB2GlobalObject implements DBPNamedObject {
private Double writeOverhead;
private Double deviceWriteRate;
private Integer dataTag;
private Integer cachingTier;
private String cachingTier;
private String remarks;
// -----------------------
......@@ -66,8 +66,10 @@ public class DB2StorageGroup extends DB2GlobalObject implements DBPNamedObject {
this.deviceWriteRate = JDBCUtils.safeGetDouble(dbResult, "DEVICEWRITERATE");
this.dataTag = JDBCUtils.safeGetInteger(dbResult, "DATATAG");
this.remarks = JDBCUtils.safeGetString(dbResult, "REMARKS");
// DF: it is declared "Integer" in infocenter but Varchar in the catalog...
if (db2DataSource.isAtLeastV10_5()) {
this.cachingTier = JDBCUtils.safeGetInteger(dbResult, "CACHINGTIER");
this.cachingTier = JDBCUtils.safeGetString(dbResult, "CACHINGTIER");
}
}
......@@ -108,7 +110,7 @@ public class DB2StorageGroup extends DB2GlobalObject implements DBPNamedObject {
}
@Property(viewable = false)
public Integer getCachingTier()
public String getCachingTier()
{
return cachingTier;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册