LemonLDAPNG / Apache-Session-Browseable

Apache::Session::Browseable Perl module
http://search.cpan.org/dist/Apache-Session-Browseable/
Other
3 stars 5 forks source link

restrict mysql_enable_utf8 to DBD::mysql #41

Open maxbes opened 7 months ago

maxbes commented 7 months ago

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