Browse files

Updating node-db

  • Loading branch information...
1 parent 6643a11 commit ada29bed208bf94fa2501cba9876e10dc824ae33 @mariano committed May 2, 2011
Showing with 8 additions and 3 deletions.
  1. +1 −1 lib/node-db
  2. +7 −2 tests.js
2 lib/node-db
@@ -1 +1 @@
-Subproject commit b0620f0638735bd302ee301732ed7ce3e0206119
+Subproject commit eb55994d5799f2f3301c311c8421eba0998025d8
View
9 tests.js
@@ -350,7 +350,7 @@ exports["Query"] = testCase({
},
"where()": function(test) {
var drizzle = this.drizzle;
- test.expect(9);
+ test.expect(10);
test.throws(
function () {
@@ -398,11 +398,16 @@ exports["Query"] = testCase({
return false;
}});
- drizzle.query().where("1=1").where("2=2").execute({ start: function(query) {
+ drizzle.query().where("1=1").and("2=2").execute({ start: function(query) {
test.equal(" WHERE 1=1 AND 2=2", query);
return false;
}});
+ drizzle.query().where("1=1").and("2=2").or("3=3").execute({ start: function(query) {
+ test.equal(" WHERE 1=1 AND 2=2 OR 3=3", query);
+ return false;
+ }});
+
test.done();
},
"join()": function(test) {

0 comments on commit ada29be

Please sign in to comment.