XML formatter: fix null column values v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Wed, 15 Jan 2014 22:22:45 +0100
branchv_0
changeset 1631df10a9be6f4
parent 162 7863d8a423d4
child 164 8cc7862605a1
XML formatter: fix null column values
java/sql-dk/src/info/globalcode/sql/dk/formatting/XmlFormatter.java
     1.1 --- a/java/sql-dk/src/info/globalcode/sql/dk/formatting/XmlFormatter.java	Wed Jan 15 21:38:02 2014 +0100
     1.2 +++ b/java/sql-dk/src/info/globalcode/sql/dk/formatting/XmlFormatter.java	Wed Jan 15 22:22:45 2014 +0100
     1.3 @@ -149,9 +149,9 @@
     1.4  		if (value == null) {
     1.5  			if (attributes == null) {
     1.6  				attributes = new LinkedHashMap<>(2);
     1.7 -				attributes.put(qname("null"), "true");
     1.8 -				printEmptyElement(qname("column"), attributes);
     1.9  			}
    1.10 +			attributes.put(qname("null"), "true");
    1.11 +			printEmptyElement(qname("column"), attributes);
    1.12  		} else {
    1.13  			printTextElement(qname("column"), attributes, toString(value));
    1.14  		}