From 1681b3dd1c6d1b832fdec1341a636371063a91ad Mon Sep 17 00:00:00 2001 From: titou10 Date: Sun, 29 Dec 2013 13:27:28 +0000 Subject: [PATCH] DB2: SYSCAT.STOGROUPS.CACHINGTIER is declared "Integer" in the infocenter but Varchar in the catalog... Former-commit-id: 75e50284f35fff0afea84edb6d3f1ab0b0c99918 --- .../org/jkiss/dbeaver/ext/db2/model/DB2StorageGroup.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/org.jkiss.dbeaver.db2/src/org/jkiss/dbeaver/ext/db2/model/DB2StorageGroup.java b/plugins/org.jkiss.dbeaver.db2/src/org/jkiss/dbeaver/ext/db2/model/DB2StorageGroup.java index d0339ac882..8f725ece20 100644 --- a/plugins/org.jkiss.dbeaver.db2/src/org/jkiss/dbeaver/ext/db2/model/DB2StorageGroup.java +++ b/plugins/org.jkiss.dbeaver.db2/src/org/jkiss/dbeaver/ext/db2/model/DB2StorageGroup.java @@ -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; } -- GitLab