Comparing version 0.5.1 to 0.5.2
@@ -136,1 +136,6 @@ | ||
* Set column timestamps in microseconds | ||
0.5.2 / 2012-05-11 | ||
================== | ||
* Removed unneeded escaping |
@@ -117,14 +117,4 @@ | ||
val = val.replace(/[\0\n\r\b\t\\\'\"\x1a]/g, function(s) { | ||
switch(s) { | ||
case "\0": return "\\0"; | ||
case "\n": return "\\n"; | ||
case "\r": return "\\r"; | ||
case "\b": return "\\b"; | ||
case "\t": return "\\t"; | ||
case "\x1a": return "\\Z"; | ||
case "'": return "''"; | ||
default: return "\\"+s; | ||
} | ||
}); | ||
val = val.replace(/\'/img, '\'\''); | ||
return "'"+val+"'"; | ||
@@ -131,0 +121,0 @@ } |
{ | ||
"name": "helenus" | ||
, "version": "0.5.1" | ||
, "version": "0.5.2" | ||
, "description": "NodeJS Bindings for Cassandra" | ||
@@ -5,0 +5,0 @@ , "keywords": ["cassandra"] |
@@ -39,3 +39,3 @@ | ||
timeout : 3000 | ||
//cqlVersion : '3.0.0' // specify this if you're using Cassandra 1.1 | ||
//cqlVersion : '3.0.0' // specify this if you're using Cassandra 1.1 and want to use CQL 3 | ||
}); | ||
@@ -62,3 +62,3 @@ | ||
pool.cql("SELECT '%s' FROM cf_one WHERE key='%s'", ['col','key123'], function(err, results){ | ||
pool.cql("SELECT col FROM cf_one WHERE key = ?", ['key123'], function(err, results){ | ||
console.log(err, results); | ||
@@ -68,5 +68,4 @@ }); | ||
//NOTE: | ||
//- You can also use ? as a placeholder. eg: "SELECT ? FROM cf_one WHERE key = ?" | ||
//- You can always skip quotes around placeholders, they are added automatically. | ||
//- You cannot use placeholders for ColumnFamily names. | ||
//- In CQL 3 you cannot use placeholders for ColumnFamily names or Column names. | ||
} | ||
@@ -73,0 +72,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
573321
13206
223