Skip to content
Browse files

feat: adds Date support to escapeCQL function

  • Loading branch information...
1 parent e717734 commit bab0a38882a3794e8b030af03220e9ae3fe4ea85 @tim-dev tim-dev committed Nov 13, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/connection.js
View
4 lib/connection.js
@@ -102,6 +102,10 @@ function escapeCQL(val) {
return val.toString();
}
+ if(val instanceof Date){
+ return val.getTime();
+ }
+
if(typeof val === 'number' || typeof val === 'boolean'){
return val.toString();
}

0 comments on commit bab0a38

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