Skip to content

Commit aef7946

Browse files
committed
Try SQLServer 2022 in test
1 parent b0dfbfa commit aef7946

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ jobs:
3737
--health-timeout 5s
3838
--health-retries 5
3939
sqlserver:
40-
image: mcr.microsoft.com/mssql/server:2025-latest
40+
image: mcr.microsoft.com/mssql/server:2022-latest
4141
env:
4242
ACCEPT_EULA: "Y"
43-
MSSQL_SA_PASSWORD: sa_SA_54
43+
MSSQL_SA_PASSWORD: Password123
4444
ports:
4545
- 1433:1433
4646
options: >-
47-
--health-cmd "/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P sa_SA_54 -Q 'SELECT 1'"
47+
--health-cmd "/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P Password123 -Q 'SELECT 1'"
4848
--health-interval 10s
4949
--health-timeout 5s
5050
--health-retries 10

codegen/bundle/config.local.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
all:
22
SQLDataSourceName: root:root@tcp(127.0.0.1:3306)/sequel
33
# SQLDataSourceName: postgres://postgres:postgres@127.0.0.1:5432/sequel
4-
# SQLDataSourceName: sqlserver://sa:sa_SA_54@127.0.0.1:1433?database=sequel
4+
# SQLDataSourceName: sqlserver://sa:Password123@127.0.0.1:1433?database=sequel

db.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ If a data source name is not provided, the following defaults are used based on
306306
- (empty): root:root@tcp(127.0.0.1:3306)/
307307
- mysql: root:root@tcp(127.0.0.1:3306)/
308308
- pgx: postgres://postgres:postgres@127.0.0.1:5432/
309-
- mssql: sqlserver://sa:sa_SA_54@127.0.0.1:1433
309+
- mssql: sqlserver://sa:Password123@127.0.0.1:1433
310310
*/
311311
func OpenTesting(driverName string, dataSourceName string, uniqueTestID string) (db *DB, err error) {
312312
// Set default connection to localhost
@@ -317,7 +317,7 @@ func OpenTesting(driverName string, dataSourceName string, uniqueTestID string)
317317
case "pgx":
318318
dataSourceName = "postgres://postgres:postgres@127.0.0.1:5432/"
319319
case "mssql":
320-
dataSourceName = "sqlserver://sa:sa_SA_54@127.0.0.1:1433"
320+
dataSourceName = "sqlserver://sa:Password123@127.0.0.1:1433"
321321
default:
322322
return nil, errors.New("unsupported driver name: %s", driverName)
323323
}

0 commit comments

Comments
 (0)