Skip to content

Commit 00d0b6d

Browse files
committed
Stable Version 0.11.11
1 parent f9ae239 commit 00d0b6d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

dist/js-data-sql.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,9 @@ module.exports =
250250
var instance = undefined;
251251
options = options || {};
252252
options.with = options.with || [];
253+
var table = getTable(resourceConfig);
253254
var query = options && options.transaction || this.query;
254-
return query.select('*').from(getTable(resourceConfig)).where(resourceConfig.idAttribute, (0, _lang.toString)(id)).then(function (rows) {
255+
return query.select(table + '.*').from(table).where(resourceConfig.idAttribute, (0, _lang.toString)(id)).then(function (rows) {
255256
if (!rows.length) {
256257
return _bluebird2.default.reject(new Error('Not Found!'));
257258
} else {
@@ -464,7 +465,7 @@ module.exports =
464465
if (v === null) {
465466
query = query.whereNull(field);
466467
} else {
467-
query.where(field, v);
468+
query = query.where(field, v);
468469
}
469470
} else if (op === '!=' || op === '!==') {
470471
if (v === null) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "js-data-sql",
33
"description": "Postgres/MySQL/MariaDB/SQLite3 adapter for js-data.",
4-
"version": "0.11.10",
4+
"version": "0.11.11",
55
"homepage": "http://www.js-data.io/docs/dssqladapter",
66
"repository": {
77
"type": "git",

0 commit comments

Comments
 (0)