mirror of
https://github.com/dbgate/dbgate
synced 2024-11-15 00:06:30 +00:00
revert mssql driver
This commit is contained in:
parent
7edb03a0dd
commit
520a75f198
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user