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

restrict mysql_enable_utf8 to DBD::mysql #41

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

maxbes
Copy link
Contributor

@maxbes maxbes commented Feb 12, 2024

Test script:

use Apache::Session::Browseable::MySQL;
  
my $args = {
        'DataSource' => 'DBI:MariaDB:database=test;host=localhost',
        'Password' => 'test',
        'TableName' => 'sessions',
        'UserName' => 'test',
};

tie %session, 'Apache::Session::Browseable::MySQL', undef, $args;

Version: 10.11.4-MariaDB

result:

DBD::MariaDB::db STORE failed: Unknown attribute mysql_enable_utf8

This PR only sets mysql_enable_utf8 on DBD::mysql. DBD::MariaDB already does it by default

@coudot coudot added this to the 1.3.10 milestone Dec 17, 2024
@coudot coudot merged commit cf78ac8 into LemonLDAPNG:master Dec 18, 2024
@coudot coudot deleted the fix-mariadb-utf8 branch December 18, 2024 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants