Fix search brokenness from r453

This commit is contained in:
Dan Stillman 2006-08-15 04:59:09 +00:00
parent 3a18dcb70f
commit 009a4ad520

View File

@ -308,7 +308,7 @@ Scholar.Search.prototype._buildQuery = function(){
case 'collectionID':
condSQL += "collectionID ";
if (tables[i][j]['operator']=='isNot'){
sql += "NOT ";
condSQL += "NOT ";
}
// Add given collection id
condSQL += "IN (?,";
@ -376,7 +376,7 @@ Scholar.Search.prototype._buildQuery = function(){
break;
case 'is':
sql += '=?';
condSQL += '=?';
condSQLParams.push(tables[i][j]['value']);
break;
@ -386,7 +386,7 @@ Scholar.Search.prototype._buildQuery = function(){
break;
case 'greaterThan':
sql += '>?';
condSQL += '>?';
condSQLParams.push({int:tables[i][j]['value']});
break;