Index: RDBMDistributedLayoutStore.java =================================================================== --- RDBMDistributedLayoutStore.java (revision 1323) +++ RDBMDistributedLayoutStore.java (revision 1326) @@ -1034,6 +1034,8 @@ rs = stmt.executeQuery(sQuery); try { while (rs.next()) { + String attr_name = rs.getString(1); + String attr_value = rs.getString(2); int param_type = rs.getInt(3); int structId = rs.getInt(4); if (rs.wasNull()) { @@ -1050,7 +1052,7 @@ if (LOG.isDebugEnabled()) LOG.debug("RDBMUserLayoutStore::getStructureStylesheetUserPreferences() : stylesheet global params should be specified in the user defaults table ! UP_SS_USER_ATTS is corrupt. (userId=" + Integer.toString(userId) + ", profileId=" + Integer.toString(profileId) + ", stylesheetId=" + Integer.toString(stylesheetId) - + ", param_name=\"" + rs.getString(1) + "\", param_type=" + Integer.toString(param_type)); + + ", param_name=\"" + attr_name + "\", param_type=" + Integer.toString(param_type)); } else if (param_type == 2) { // folder attribute @@ -1061,7 +1063,7 @@ folderStructId = originId; else folderStructId = getStructId(structId,chanId); - ssup.setFolderAttributeValue(folderStructId, rs.getString(1), rs.getString(2)); + ssup.setFolderAttributeValue(folderStructId, attr_name, attr_value); } else if (param_type == 3) { // channel attribute @@ -1072,7 +1074,7 @@ channelStructId = originId; else channelStructId = getStructId(structId,chanId); - ssup.setChannelAttributeValue(channelStructId, rs.getString(1), rs.getString(2)); + ssup.setChannelAttributeValue(channelStructId, attr_name, attr_value); } else { // unknown param type @@ -1083,7 +1085,7 @@ + ", stylesheetId=" + Integer.toString(stylesheetId) + ", param_name=\"" - + rs.getString(1) + + attr_name + "\", param_type=" + Integer.toString(param_type)); }