mirror of
https://github.com/dbgate/dbgate
synced 2024-11-14 15:56:49 +00:00
revert mssql driver
This commit is contained in:
parent
7edb03a0dd
commit
520a75f198
@ -79,16 +79,11 @@ const driver = {
|
||||
|
||||
async connect(conn) {
|
||||
const { authType } = conn;
|
||||
const result =
|
||||
requireMsnodesqlv8 && (authType == 'sspi' || authType == 'sql')
|
||||
? await nativeConnect(conn)
|
||||
: await tediousConnect(conn);
|
||||
|
||||
if (result) {
|
||||
result._database_name = conn.database;
|
||||
if (requireMsnodesqlv8 && (authType == 'sspi' || authType == 'sql')) {
|
||||
return nativeConnect(conn);
|
||||
}
|
||||
|
||||
return result;
|
||||
return tediousConnect(conn);
|
||||
},
|
||||
async close(pool) {
|
||||
return pool.close();
|
||||
|
Loading…
Reference in New Issue
Block a user