revert mssql driver

This commit is contained in:
Jan Prochazka 2024-09-19 17:48:41 +02:00
parent 7edb03a0dd
commit 520a75f198

View File

@ -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();