Fix no order exists bug
This commit is contained in:
parent
8f2cb3ae7a
commit
1e19c1465a
|
@ -1159,8 +1159,9 @@ SQLConnector.prototype._buildWhere = function(model, where) {
|
|||
* @returns {string} The ORDER BY clause
|
||||
*/
|
||||
SQLConnector.prototype.buildOrderBy = function(model, order) {
|
||||
var idName = this.idName(model);
|
||||
if (!order) {
|
||||
return '';
|
||||
order = idName;
|
||||
}
|
||||
var self = this;
|
||||
if (typeof order === 'string') {
|
||||
|
|
Loading…
Reference in New Issue