diff --git a/lib/dialects/sqlanywhere/index.js b/lib/dialects/sqlanywhere/index.js index ffe46568f4..d65bf66d37 100644 --- a/lib/dialects/sqlanywhere/index.js +++ b/lib/dialects/sqlanywhere/index.js @@ -122,9 +122,10 @@ class Client_Sqlanywhere extends Client { if (!obj.sql) throw new Error('The query is empty'); return new Promise((resolve, reject) => { - let cb = (err, result) => { + let cb = (err, response) => { if (err) return reject(err); - resolve(result); + obj.response = response; + resolve(obj); }; if (obj.bindings) { return connection.exec(obj.sql, obj.bindings, cb);