Skip to content

Commit 23bffab

Browse files
committed
chore: if programmer does not provide type, this upperCase will throw and prevent useful logging
1 parent 1f9e971 commit 23bffab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ var Base = Class.extend({
8888
case type.SMALLINT:
8989
return 'SMALLINT';
9090
default:
91-
var unknownType = str.toUpperCase();
91+
var unknownType = typeof str === 'string' ? str.toUpperCase() : str;
9292
log.warn('Using unknown data type', unknownType);
9393
return unknownType;
9494
}

0 commit comments

Comments
 (0)