Permalink
Browse files

Boolean values need to be enclused in single quotes.

  • Loading branch information...
1 parent e13eff6 commit 71d26732e1dc9d7e41a10b3bea4d3a991341ccfc @kzadorozhny kzadorozhny committed Oct 24, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/connection.js
View
4 lib/connection.js
@@ -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();
}

0 comments on commit 71d2673

Please sign in to comment.