Skip to content

Commit db8c578

Browse files
committed
Restore DBD:mysql to URI::mysql
But leave URI::mariadb using DBD::MariaDB. Fixes #29.
1 parent 33f8b13 commit db8c578

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

Changes

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
Revision history for Perl extension URI::db.
22

33
0.24
4+
- Changed the URI::mysql `dbi_dsn()` back to use the DBD::mysql driver.
5+
URI::mariadb, however, still uses DBD::MariaDB. Thanks to Alastair
6+
Douglas for the completely reasonable gripe (#29).
47

58
0.23 2025-01-09T02:48:06Z
69
- Added URI::clickhouse. Thanks to Ilia Rassadin for the PR (#18).

lib/URI/mariadb.pm

+2
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ package URI::mariadb;
22
use base 'URI::mysql';
33
our $VERSION = '0.24';
44

5+
sub dbi_driver { 'MariaDB' }
6+
57
1;

lib/URI/mysql.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use base 'URI::_db';
33
our $VERSION = '0.24';
44

55
sub default_port { 3306 }
6-
sub dbi_driver { 'MariaDB' }
6+
sub dbi_driver { 'mysql' }
77
sub canonical_engine { 'mysql' }
88

99
sub _dbi_param_map {

t/dbi.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ for my $spec (
194194
},
195195
{
196196
uri => 'db:mysql://localhost:33/foo',
197-
dsn => 'dbi:MariaDB:host=localhost;port=33;database=foo',
197+
dsn => 'dbi:mysql:host=localhost;port=33;database=foo',
198198
dbi => [ [host => 'localhost'], [port => 33], [database => 'foo'] ],
199199
qry => [],
200200
},

0 commit comments

Comments
 (0)