Project

General

Profile

« Previous | Next » 

Revision 6535

Fix a data-typing issue when pulling replicationAllowed from postgres. Use getBoolean(), not getString().

View differences:

src/edu/ucsb/nceas/metacat/IdentifierManager.java
273 273
                String submitter = rs.getString(9);
274 274
                String fmtidStr = rs.getString(10);
275 275
                BigInteger size = new BigInteger(rs.getString(11));
276
                replicationAllowed = new Boolean(rs.getString(12));
276
                replicationAllowed = new Boolean(rs.getBoolean(12));
277 277
                numberOfReplicas = new BigInteger(rs.getString(13));
278 278
                String obsoletes = rs.getString(14);
279 279
                String obsoletedBy = rs.getString(15);
280 280

  
281
                
282 281
                Identifier sysMetaId = new Identifier();
283 282
                sysMetaId.setValue(guid);
284 283
                sysMeta.setIdentifier(sysMetaId);

Also available in: Unified diff