Permalink
Browse files

Fixed bug in DBSelect.where().

  • Loading branch information...
1 parent 0f40601 commit 3b36f87edccd5c475ebd7f519d4144a502a3a219 @kalifg kalifg committed Aug 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/dbSelect.js
View
@@ -92,7 +92,7 @@ DBSelect.prototype.where = function( whereStr, value, clauseType )
{
var pushCount = 1;
- if (typeof clauseType === 'undefined') {
+ if (!clauseType) {
clauseType = 'AND';
}

0 comments on commit 3b36f87

Please sign in to comment.