Skip to content

Commit

Permalink
修复最新基础镜像mssql连接问题 (#2407)
Browse files Browse the repository at this point in the history
修复最新基础镜像mssql连接问题
  • Loading branch information
hhyo authored Nov 25, 2023
1 parent 280f28d commit 90fc156
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sql/engines/mssql.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class MssqlEngine(EngineBase):
test_query = "SELECT 1"

def get_connection(self, db_name=None):
connstr = """DRIVER=ODBC Driver 17 for SQL Server;SERVER={0},{1};UID={2};PWD={3};
client charset = UTF-8;connect timeout=10;CHARSET={4};""".format(
connstr = """DRIVER=ODBC Driver 18 for SQL Server;SERVER={0},{1};UID={2};PWD={3};
client charset = UTF-8;connect timeout=10;CHARSET={4};TrustServerCertificate=yes;""".format(
self.host,
self.port,
self.user,
Expand Down

0 comments on commit 90fc156

Please sign in to comment.