Skip to content

Commit db03352

Browse files
postgres: Add Postgres 17 direct connection test
1 parent fac2fa9 commit db03352

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/sqlx.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,16 @@ jobs:
324324
DATABASE_URL: postgres://postgres@localhost:5432/sqlx?sslmode=verify-ca&sslrootcert=.%2Ftests%2Fcerts%2Fca.crt&sslkey=.%2Ftests%2Fcerts%2Fkeys%2Fclient.key&sslcert=.%2Ftests%2Fcerts%2Fclient.crt
325325
RUSTFLAGS: --cfg postgres="${{ matrix.postgres }}"
326326
327+
# Direct SSL negotiation only supported by Postgres 17+
328+
- if: matrix.postgres == '17'
329+
run: >
330+
cargo test
331+
--no-default-features
332+
--features any,postgres,macros,_unstable-all-types,runtime-${{ matrix.runtime }},tls-${{ matrix.tls }}
333+
env:
334+
DATABASE_URL: postgres://postgres@localhost:5432/sqlx?sslnegotiation=direct&sslmode=require&sslkey=.%2Ftests%2Fcerts%2Fkeys%2Fclient.key&sslcert=.%2Ftests%2Fcerts%2Fclient.crt
335+
RUSTFLAGS: --cfg postgres="${{ matrix.postgres }}"
336+
327337
mysql:
328338
name: MySQL
329339
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)