Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL 9.0.0 client library support #435

Merged
merged 1 commit into from
Jul 1, 2024
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
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