You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.
School.select('schools.id as id','name','address.city as city','address_state.abbr as state').join({address: 'state'},'inner').order('name')
ERROR
School.select('schools.id as id','name','address.city as city','address_state.abbr as state').join({address: 'state'},'inner').order(['name','city'])
I get the error:
TypeError: attribute.split is not a function
at Array.<anonymous> (/home/samps/sites/personal/dus/office.downundersports.com/node/node_modules/openrecord/lib/stores/sql/order.js:68:31)
sql/order.js
...
...
order: function(columns,desc){varself=this.chain()if(columns){if(typeofdesc==='boolean'){if(!Array.isArray(columns))columns=[columns]}else{columns=Utils.args(arguments)desc=false}for(variincolumns){//MOST LIKELY NOT PROPERLY ADDING TO INTERNAL HEREself.addInternal('order',{column: columns[i],order: desc ? 'DESC' : 'ASC'})}}else{self.clearInternal('order')}returnself},
...
...
exports.definition={mixinCallback: function(){this.beforeFind(function(query){varorder=this.getInternal('order')...
...
for(iinorder){varattribute=order[i].columnvartmp=attribute.split('.')//ERROR IS HERE...
...
}
The text was updated successfully, but these errors were encountered:
If i try to order by multiple columns
WORKS
ERROR
I get the error:
sql/order.js
The text was updated successfully, but these errors were encountered: