Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/sqlx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ jobs:
env:
DATABASE_URL: postgres://postgres:password@localhost:5432/sqlx
SQLX_OFFLINE_DIR: .sqlx
RUSTFLAGS: --cfg postgres="${{ matrix.postgres }}"
RUSTFLAGS: -D warnings --cfg postgres="${{ matrix.postgres }}"

# Run the `test-attr` test again to cover cleanup.
- run: >
Expand All @@ -254,7 +254,7 @@ jobs:
env:
DATABASE_URL: postgres://postgres:password@localhost:5432/sqlx
SQLX_OFFLINE_DIR: .sqlx
RUSTFLAGS: --cfg postgres="${{ matrix.postgres }}"
RUSTFLAGS: -D warnings --cfg postgres="${{ matrix.postgres }}"

- if: matrix.tls != 'none'
run: >
Expand All @@ -264,7 +264,7 @@ jobs:
env:
DATABASE_URL: postgres://postgres:password@localhost:5432/sqlx?sslmode=verify-ca&sslrootcert=.%2Ftests%2Fcerts%2Fca.crt
SQLX_OFFLINE_DIR: .sqlx
RUSTFLAGS: --cfg postgres="${{ matrix.postgres }}"
RUSTFLAGS: -D warnings --cfg postgres="${{ matrix.postgres }}"

# Remove test artifacts
- run: cargo clean -p sqlx
Expand All @@ -290,7 +290,7 @@ jobs:
DATABASE_URL: postgres://postgres:password@localhost:5432/sqlx
SQLX_OFFLINE: true
SQLX_OFFLINE_DIR: .sqlx
RUSTFLAGS: --cfg postgres="${{ matrix.postgres }}"
RUSTFLAGS: -D warnings --cfg postgres="${{ matrix.postgres }}"

postgres-ssl-auth:
name: Postgres SSL Auth
Expand Down Expand Up @@ -322,7 +322,7 @@ jobs:
--features any,postgres,macros,_unstable-all-types,runtime-${{ matrix.runtime }},tls-${{ matrix.tls }}
env:
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
RUSTFLAGS: --cfg postgres="${{ matrix.postgres }}"
RUSTFLAGS: -D warnings --cfg postgres="${{ matrix.postgres }}"

mysql:
name: MySQL
Expand Down
10 changes: 9 additions & 1 deletion tests/postgres/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,15 @@ mod chrono {

test_type!(chrono_date_time_tz<DateTime::<FixedOffset>>(Postgres,
"TIMESTAMPTZ '2019-01-02 05:10:20.115100+06:30'"
== FixedOffset::east_opt(60 * 60 * 6 + 1800).unwrap().ymd(2019, 1, 2).and_hms_micro_opt(5, 10, 20, 115100).unwrap()
== FixedOffset::east_opt(60 * 60 * 6 + 1800)
.unwrap()
.from_local_datetime(
&NaiveDate::from_ymd_opt(2019, 1, 2)
.unwrap()
.and_hms_micro_opt(5, 10, 20, 115_100)
.unwrap()
)
.unwrap()
));

test_type!(chrono_date_time_tz_vec<Vec<DateTime::<Utc>>>(Postgres,
Expand Down
Loading