File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -174,10 +174,11 @@ class DSSqlAdapter {
174174 let instance
175175 options = options || { }
176176 options . with = options . with || [ ]
177+ let table = getTable ( resourceConfig ) ;
177178 let query = options && options . transaction || this . query
178179 return query
179- . select ( '*' )
180- . from ( getTable ( resourceConfig ) )
180+ . select ( ` ${ table } .*` )
181+ . from ( table )
181182 . where ( resourceConfig . idAttribute , toString ( id ) )
182183 . then ( rows => {
183184 if ( ! rows . length ) {
@@ -362,7 +363,7 @@ class DSSqlAdapter {
362363 if ( v === null ) {
363364 query = query . whereNull ( field )
364365 } else {
365- query . where ( field , v )
366+ query = query . where ( field , v )
366367 }
367368 } else if ( op === '!=' || op === '!==' ) {
368369 if ( v === null ) {
You can’t perform that action at this time.
0 commit comments