Boolean values need to enclosed in single quotes #83

Merged
merged 1 commit into from Oct 26, 2012
Jump to file
+2 −2
Split
View
@@ -88,7 +88,7 @@ function escapeCQL(val) {
return val.toString('hex');
}
- if(typeof val === 'boolean' || typeof val === 'number'){
+ if(typeof val === 'number'){
return val.toString();
}
@@ -97,7 +97,7 @@ function escapeCQL(val) {
return sanitized.join(',');
}
- if (typeof val === 'object') {
+ if (typeof val === 'object' || typeof val === 'boolean') {
val = (typeof val.toISOString === 'function') ? val.toISOString() : val.toString();
}