Skip to content

Commit

Permalink
MySQL 9.0.0 client libarary support
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden committed Jul 1, 2024
1 parent 4141938 commit 028acf2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
- os: ubuntu-22.04
client: "8.4"
server: "8.0"
- os: ubuntu-22.04
client: "9.0"
server: "8.4"
runs-on: ${{ matrix.os }}
services:
mysql:
Expand Down Expand Up @@ -53,6 +56,10 @@ jobs:
run: |
sudo debconf-set-selections <<EOF
mysql-apt-config mysql-apt-config/select-server select mysql-8.4-lts
- if: matrix.client == '9.0'
run: |
sudo debconf-set-selections <<EOF
mysql-apt-config mysql-apt-config/select-server select mysql-innovation
EOF
- name: "Setup mysql libs"
run: |
Expand Down
4 changes: 2 additions & 2 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,8 @@ sub Configure {
}

if ($param eq 'version') {
if ($str !~ /^8\./) {
die "DBD::mysql requires MySQL 8.x for building. Version reported by $command: $str";
if ($str !~ /^[89]\./) {
die "DBD::mysql requires MySQL 8.x or newer for building. Version reported by $command: $str";
}
}

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Usage is described in [DBD::mysql](https://metacpan.org/pod/DBD::mysql).

## Building and Testing

For building DBD::mysql you need the MySQL 8.x client library.
For building DBD::mysql you need a MySQL 8.x or newer client library.

```
perl Makefile.PL
Expand Down

0 comments on commit 028acf2

Please sign in to comment.