Permalink
Browse files

Add decimal data type. Closes #131

  • Loading branch information...
1 parent fdb81b3 commit e34b3fb0245cef13a23a01ee9edb75cca8096a15 @kunklejr kunklejr committed Oct 8, 2013
Showing with 4 additions and 1 deletion.
  1. +2 −1 lib/data_type.js
  2. +2 −0 lib/driver/base.js
View
@@ -9,5 +9,6 @@ module.exports = {
BLOB: 'blob',
TIMESTAMP: 'timestamp',
BINARY: 'binary',
- BOOLEAN: 'boolean'
+ BOOLEAN: 'boolean',
+ DECIMAL: 'decimal'
};
View
@@ -38,6 +38,8 @@ module.exports = Base = Class.extend({
return 'BINARY';
case type.BOOLEAN:
return 'BOOLEAN';
+ case type.DECIMAL:
+ return 'DECIMAL';
default:
var unknownType = str.toUpperCase();
log.warn('Using unknown data type', unknownType);

0 comments on commit e34b3fb

Please sign in to comment.