Skip to content
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
4 changes: 2 additions & 2 deletions lib/resultset.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ ResultSet.prototype.toObjectIter = function (callback) {
var dateVal = self._rs[getter](cmd.label);
result[cmd.label] = dateVal ? dateVal.toString() : null;
} else {
// If the column is an integer and is null, set result to null and continue
if (type === 'Int' && _.isNull(self._rs.getObjectSync(cmd.label))) {
// If the column is an integer or Double or Boolean and is null, set result to null and continue
if ((type === 'Int' || type === 'Double' || type === 'Boolean') && _.isNull(self._rs.getObjectSync(cmd.label))) {
result[cmd.label] = null;
return;
}
Expand Down