Skip to content

Commit c72d9c1

Browse files
committed
fix fromColumnValue when val is undefined
1 parent a9060c6 commit c72d9c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/ibmdb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ IBMDB.prototype.toColumnValue = function(prop, val) {
372372
*/
373373
IBMDB.prototype.fromColumnValue = function(prop, val) {
374374
debug('IBMDB.prototype.fromColumnValue %j %j', prop, val);
375-
if (val === null || !prop) {
375+
if (val === undefined || val === null || !prop) {
376376
return val;
377377
}
378378
switch (prop.type.name) {

0 commit comments

Comments
 (0)