Project

General

Profile

« Previous | Next » 

Revision 4878

only "correct" non-null values

View differences:

download.jsp
87 87
					String colName = rs.getMetaData().getColumnName(i);
88 88
					String value = rs.getString(i);
89 89
					//clean up the value
90
					value = value.replaceAll("\n", " ");
91
					value = value.replaceAll("<html>", " ");
92
					value = value.replaceAll("</html>", " ");
93
					value = value.replaceAll("<head>", " ");
94
					value = value.replaceAll("</head>", " ");
95
					value = value.replaceAll("<body>", " ");
96
					value = value.replaceAll("</body>", " ");
97
					
90
					if (value != null) {
91
						value = value.replaceAll("\n", " ");
92
						value = value.replaceAll("<html>", " ");
93
						value = value.replaceAll("</html>", " ");
94
						value = value.replaceAll("<head>", " ");
95
						value = value.replaceAll("</head>", " ");
96
						value = value.replaceAll("<body>", " ");
97
						value = value.replaceAll("</body>", " ");
98
					}
98 99
					//do we include this column in the pivot?
99 100
					if (pivotAttributes.contains(colName)) {
100 101
						//annotate the column name with the pivot column value if not the id column

Also available in: Unified diff