Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Boolean values need to be enclused in single quotes.

  • Loading branch information...
commit 71d26732e1dc9d7e41a10b3bea4d3a991341ccfc 1 parent e13eff6
Konstantin Zadorozhny kzadorozhny authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/connection.js
4 lib/connection.js
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();
}
Please sign in to comment.
Something went wrong with that request. Please try again.