Skip to content

Commit 95315f6

Browse files
committed
Update ODBC driver configuration in CI and docker-compose for PostgreSQL
1 parent 79502ff commit 95315f6

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,15 @@ jobs:
5858
db_url: "mssql://root:Password123!@127.0.0.1/sqlpage"
5959
- database: odbc
6060
container: postgres
61-
db_url: "Driver={PostgreSQL Unicode};Server=127.0.0.1;Port=5432;Database=sqlpage;UID=root;PWD=Password123!"
61+
db_url: "Driver=/usr/lib64/psqlodbcw.so;Server=127.0.0.1;Port=5432;Database=sqlpage;UID=root;PWD=Password123!"
6262
setup_odbc: true
6363
steps:
6464
- uses: actions/checkout@v4
6565
- name: Set up cargo cache
6666
uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
67-
- name: Setup ODBC for testing
67+
- name: Install PostgreSQL ODBC driver
6868
if: matrix.setup_odbc
69-
run: |
70-
# Install PostgreSQL ODBC driver (automatically registers the driver)
71-
sudo apt-get install -y odbc-postgresql
69+
run: sudo apt-get install -y odbc-postgresql
7270
- name: Start database container
7371
run: docker compose up --wait ${{ matrix.container }}
7472
- name: Show container logs

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# DATABASE_URL='postgres://root:Password123!@localhost/sqlpage'
55
# DATABASE_URL='mssql://root:Password123!@localhost/sqlpage'
66
# DATABASE_URL='mysql://root:Password123!@localhost/sqlpage'
7+
# DATABASE_URL='Driver={/usr/lib64/psqlodbcw.so};Server=127.0.0.1;Port=5432;Database=sqlpage;UID=root;PWD=Password123!'
78

89
# Run for instance:
910
# docker compose up postgres

0 commit comments

Comments
 (0)