Merge pull request #43 from bergie/master
Fix unconstrained all on MySQL
This commit is contained in:
commit
028375b16e
|
@ -241,6 +241,9 @@ MySQL.prototype.all = function all(model, filter, callback) {
|
|||
cs.push(keyEscaped + ' = ' + val);
|
||||
}
|
||||
});
|
||||
if (cs.length === 0) {
|
||||
return '';
|
||||
}
|
||||
return 'WHERE ' + cs.join(' AND ');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue