diff --git a/index.js b/index.js index a86a79c..45f79a8 100644 --- a/index.js +++ b/index.js @@ -989,7 +989,7 @@ class ClickHouse { static mapRowAsObject(fieldList, row) { return fieldList .map(f => { - return encodeValue(false, row[f] != null ? row[f] : '', 'TabSeparated'); + return encodeValue(false, row[f] != null || row[f] === null ? row[f] : '', 'TabSeparated'); }) .join('\t'); }