We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a056f6 commit f9ae239Copy full SHA for f9ae239
1 file changed
src/index.js
@@ -174,10 +174,11 @@ class DSSqlAdapter {
174
let instance
175
options = options || {}
176
options.with = options.with || []
177
+ let table = getTable(resourceConfig);
178
let query = options && options.transaction || this.query
179
return query
- .select('*')
180
- .from(getTable(resourceConfig))
+ .select(`${table}.*`)
181
+ .from(table)
182
.where(resourceConfig.idAttribute, toString(id))
183
.then(rows => {
184
if (!rows.length) {
@@ -362,7 +363,7 @@ class DSSqlAdapter {
362
363
if (v === null) {
364
query = query.whereNull(field)
365
} else {
- query.where(field, v)
366
+ query = query.where(field, v)
367
}
368
} else if (op === '!=' || op === '!==') {
369
0 commit comments