Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Boolean values need to be enclused in single quotes.

  • Loading branch information...
commit 71d26732e1dc9d7e41a10b3bea4d3a991341ccfc 1 parent e13eff6
Konstantin Zadorozhny kzadorozhny authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 lib/connection.js
4 lib/connection.js
@@ -88,7 +88,7 @@ function escapeCQL(val) {
88 88 return val.toString('hex');
89 89 }
90 90
91   - if(typeof val === 'boolean' || typeof val === 'number'){
  91 + if(typeof val === 'number'){
92 92 return val.toString();
93 93 }
94 94
@@ -97,7 +97,7 @@ function escapeCQL(val) {
97 97 return sanitized.join(',');
98 98 }
99 99
100   - if (typeof val === 'object') {
  100 + if (typeof val === 'object' || typeof val === 'boolean') {
101 101 val = (typeof val.toISOString === 'function') ? val.toISOString() : val.toString();
102 102 }
103 103

0 comments on commit 71d2673

Please sign in to comment.
Something went wrong with that request. Please try again.