mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
sqlserver fix
This commit is contained in:
parent
f34d0cbb90
commit
1173d5db1d
@ -161,14 +161,14 @@ async function tediousStream(dbhan, sql, options) {
|
||||
});
|
||||
};
|
||||
|
||||
pool.on('infoMessage', handleInfo);
|
||||
pool.on('errorMessage', handleError);
|
||||
dbhan.client.on('infoMessage', handleInfo);
|
||||
dbhan.client.on('errorMessage', handleError);
|
||||
const request = new tedious.Request(sql, (err, rowCount) => {
|
||||
// if (err) reject(err);
|
||||
// else resolve(result);
|
||||
options.done();
|
||||
pool.off('infoMessage', handleInfo);
|
||||
pool.off('errorMessage', handleError);
|
||||
dbhan.client.off('infoMessage', handleInfo);
|
||||
dbhan.client.off('errorMessage', handleError);
|
||||
|
||||
options.info({
|
||||
message: `${rowCount} rows affected`,
|
||||
|
Loading…
Reference in New Issue
Block a user