Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright IBM Corp. 2011, 2015
* © Copyright IBM Corp. 2011, 2015
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -235,7 +235,11 @@ else if (columnValue instanceof Boolean) {
writeProperty(jwriter, columnDefs[i].getName(),
(Boolean)columnValue);
}
else {
else if (columnValue == null) {
jwriter.startProperty(columnDefs[i].getName());
jwriter.outNull();
jwriter.endProperty();
} else {
writeProperty(jwriter, columnDefs[i].getName(),
columnValue.toString());
}
Expand Down Expand Up @@ -361,4 +365,4 @@ private String findSqlQuery(JdbcParameters jdcbParameters) {
}


}
}