From c171a7e0249f59a51fe5d8462f201f616bede2a0 Mon Sep 17 00:00:00 2001 From: Sean Lynch Date: Mon, 14 Mar 2016 23:28:11 -0400 Subject: [PATCH] Stable Version 0.11.16 --- dist/js-data-sql.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/js-data-sql.js b/dist/js-data-sql.js index 5fa6a47..1f93347 100644 --- a/dist/js-data-sql.js +++ b/dist/js-data-sql.js @@ -123,7 +123,7 @@ module.exports = var existsParams = _defineProperty({}, relationName + '.' + fieldParts.splice(0).join('.'), criteria); // remaining field(s) handled by EXISTS subquery var subQueryTable = getTable(relationResourceConfig); - var subQueryOptions = (0, _object.deepMixIn)({ query: (0, _knex2.default)(this.defaults).select(subQueryTable + '.*').from(subQueryTable) }, options); + var subQueryOptions = (0, _object.deepMixIn)({}, options, { query: (0, _knex2.default)(this.defaults).select(subQueryTable + '.*').from(subQueryTable) }); var subQuery = this.filterQuery(relationResourceConfig, existsParams, subQueryOptions).whereRaw('??.??=??.??', [getTable(relationResourceConfig), relation.foreignKey, getTable(localResourceConfig), localResourceConfig.idAttribute]); if (Object.keys(criteria).some(function (k) { return k.indexOf('|') > -1; diff --git a/package.json b/package.json index fbd0cff..07c1e85 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "js-data-sql", "description": "Postgres/MySQL/MariaDB/SQLite3 adapter for js-data.", - "version": "0.11.15", + "version": "0.11.16", "homepage": "http://www.js-data.io/docs/dssqladapter", "repository": { "type": "git",