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) { async connect(conn) {
const { authType } = conn; const { authType } = conn;
const result = if (requireMsnodesqlv8 && (authType == 'sspi' || authType == 'sql')) {
requireMsnodesqlv8 && (authType == 'sspi' || authType == 'sql') return nativeConnect(conn);
? await nativeConnect(conn)
: await tediousConnect(conn);
if (result) {
result._database_name = conn.database;
} }
return result; return tediousConnect(conn);
}, },
async close(pool) { async close(pool) {
return pool.close(); return pool.close();