Skip to content

Commit b455faf

Browse files
authored
add support for sql server 2022 (#202)
Windows CI has not been changed to 2022 yet.
1 parent 9143125 commit b455faf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

azure-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ jobs:
131131
displayName: Use Python $(python.version)
132132

133133
- script: |
134-
docker pull mcr.microsoft.com/mssql/server:2019-latest
135-
docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=$(TestAppPassword)' -p 1433:1433 -d mcr.microsoft.com/mssql/server:2019-latest
134+
docker pull mcr.microsoft.com/mssql/server:2022-latest
135+
docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=$(TestAppPassword)' -p 1433:1433 -d mcr.microsoft.com/mssql/server:2022-latest
136136
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
137137
curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list
138138
sudo apt-get update

mssql/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ class DatabaseWrapper(BaseDatabaseWrapper):
192192
13: 2016,
193193
14: 2017,
194194
15: 2019,
195+
16: 2022,
195196
}
196197

197198
# https://azure.microsoft.com/en-us/documentation/articles/sql-database-develop-csharp-retry-windows/

0 commit comments

Comments
 (0)