|
45 | 45 | cargo clippy \ |
46 | 46 | --no-default-features \ |
47 | 47 | --all-targets \ |
48 | | - --features offline,all-databases,migrate,runtime-${{ matrix.runtime }}-${{ matrix.tls }} \ |
| 48 | + --features offline,all-databases,all-types,migrate,runtime-${{ matrix.runtime }}-${{ matrix.tls }} \ |
49 | 49 | -- -D warnings |
50 | 50 |
|
51 | 51 | test: |
@@ -366,28 +366,11 @@ jobs: |
366 | 366 | cp tests/odbc.ini ~/.odbc.ini |
367 | 367 | odbcinst -q -s || true |
368 | 368 | echo "select 1;" | isql -v SQLX_PG_5432 || true |
369 | | - - name: Run clippy for odbc |
370 | | - run: | |
371 | | - cargo clippy \ |
372 | | - --no-default-features \ |
373 | | - --features odbc,all-types,runtime-tokio-rustls,macros,migrate \ |
374 | | - -- -D warnings |
375 | 369 | - name: Run ODBC tests (PostgreSQL DSN) |
376 | | - run: | |
377 | | - cargo test --no-default-features --features any,odbc,macros,all-types,runtime-tokio-rustls any_odbc -- --test-threads=1 |
378 | | - cargo test --no-default-features --features odbc,all-types,runtime-tokio-rustls -- --test odbc --test-threads=1 |
379 | | - cargo test --no-default-features --features odbc,all-types,runtime-tokio-rustls -- --test odbc-types --test-threads=1 |
| 370 | + run: cargo test --no-default-features --features any,odbc,macros,all-types,runtime-tokio-rustls -- --test-threads=1 |
380 | 371 | env: |
381 | 372 | DATABASE_URL: DSN=SQLX_PG_5432;UID=postgres;PWD=password |
382 | | - - name: Detect SQLite ODBC driver name |
383 | | - id: detect_sqlite |
384 | | - run: | |
385 | | - if odbcinst -q -d | grep -q '^\[SQLite3\]'; then echo "driver=SQLite3" >> $GITHUB_OUTPUT; elif odbcinst -q -d | grep -q '^\[SQLite\]'; then echo "driver=SQLite" >> $GITHUB_OUTPUT; else echo 'No SQLite ODBC driver installed'; exit 1; fi |
386 | 373 | - name: Run ODBC tests (SQLite driver) |
387 | | - run: | |
388 | | - echo "Using SQLite ODBC driver: ${{ steps.detect_sqlite.outputs.driver }}" |
389 | | - cargo test --no-default-features --features any,odbc,macros,all-types,runtime-tokio-rustls any_odbc -- --test-threads=1 |
390 | | - cargo test --no-default-features --features odbc,all-types,runtime-tokio-rustls -- --test odbc --test-threads=1 |
391 | | - cargo test --no-default-features --features odbc,all-types,runtime-tokio-rustls -- --test odbc-types --test-threads=1 |
| 374 | + run: cargo test --no-default-features --features any,odbc,macros,all-types,runtime-tokio-rustls -- --test-threads=1 |
392 | 375 | env: |
393 | | - DATABASE_URL: Driver={${{ steps.detect_sqlite.outputs.driver }}};Database=./tests/odbc/sqlite.db |
| 376 | + DATABASE_URL: Driver={SQLite3};Database=./tests/odbc/sqlite.db |
0 commit comments