mirror of
https://github.com/dbgate/dbgate
synced 2024-11-08 04:35:58 +00:00
fixed bug with mssql connector
This commit is contained in:
parent
061921fd6c
commit
217be698af
@ -55,7 +55,7 @@ function extractColumns(columns) {
|
||||
/** @type {import('@dbgate/types').EngineDriver} */
|
||||
const driver = {
|
||||
async connect(nativeModules, { server, port, user, password, database }) {
|
||||
const pool = await nativeModules.mssql.connect({
|
||||
const pool = new nativeModules.mssql.ConnectionPool({
|
||||
server,
|
||||
port,
|
||||
user,
|
||||
@ -66,6 +66,7 @@ const driver = {
|
||||
enableArithAbort: true,
|
||||
},
|
||||
});
|
||||
await pool.connect();
|
||||
pool._nativeModules = nativeModules;
|
||||
return pool;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user