Skip to content

Commit

Permalink
Stable Version 0.11.14
Browse files Browse the repository at this point in the history
  • Loading branch information
techniq committed Mar 13, 2016
1 parent 0f01ff3 commit 8751f4f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion dist/js-data-sql.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,13 @@ module.exports =
// Perform `WHERE EXISTS` subquery for hasMany property
var existsParams = _defineProperty({}, parts[0], criteria);
var subQuery = _this7.filterQuery(relationResourceConfig, existsParams, options).whereRaw('??.??=??.??', [getTable(relationResourceConfig), relation.foreignKey, getTable(localResourceConfig), localResourceConfig.idAttribute]);
query.whereExists(subQuery);
if (Object.keys(criteria).some(function (k) {
return k.indexOf('|') > -1;
})) {
query.orWhereExists(subQuery);
} else {
query.whereExists(subQuery);
}
criteria = null; // criteria handled by EXISTS subquery
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "js-data-sql",
"description": "Postgres/MySQL/MariaDB/SQLite3 adapter for js-data.",
"version": "0.11.13",
"version": "0.11.14",
"homepage": "http://www.js-data.io/docs/dssqladapter",
"repository": {
"type": "git",
Expand Down

0 comments on commit 8751f4f

Please sign in to comment.