# HG changeset patch # User Sascha L. Teichmann # Date 1342124945 0 # Node ID b52c4b34ec1b697cab4c33d5265eb59bd6a79d3a # Parent 36f3b53d5cfc36e656170cea1960c37b23b398fc SQ relation: Do not store null values from database. flys-artifacts/trunk@4959 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 36f3b53d5cfc -r b52c4b34ec1b flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Thu Jul 12 17:34:40 2012 +0000 +++ b/flys-artifacts/ChangeLog Thu Jul 12 20:29:05 2012 +0000 @@ -1,3 +1,8 @@ +2012-07-12 Sascha L. Teichmann + + * src/main/java/de/intevation/flys/artifacts/model/sq/MeasurementFactory.java: + Do not store null values from database. + 2012-07-12 Sascha L. Teichmann * src/main/java/de/intevation/flys/artifacts/model/sq/Measurements.java: diff -r 36f3b53d5cfc -r b52c4b34ec1b flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/sq/MeasurementFactory.java --- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/sq/MeasurementFactory.java Thu Jul 12 17:34:40 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/sq/MeasurementFactory.java Thu Jul 12 20:29:05 2012 +0000 @@ -50,7 +50,9 @@ public Object transformTuple(Object [] tuple, String [] aliases) { Map map = new HashMap(); for (int i = 0; i < tuple.length; ++i) { - map.put(aliases[i], tuple[i]); + if (tuple[i] != null) { + map.put(aliases[i], tuple[i]); + } } return new Measurement(map); }