File tree Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ Revision history for Perl extension URI::db.
22
330.23
44 - Added URI::clickhouse. Thanks to Ilia Rassadin for the PR (#18).
5+ - Changed the MySQL (and MariaDB) URI `dbi_dsn()` method to use
6+ DBD::MariaDB instead of DBD::mysql, because it better supports older
7+ MySQL client libraries and improves Unicode support.
58
690.22 2024-04-05T01:38:17Z
710 - Changed Oracle database DBI parameter generation as follows:
Original file line number Diff line number Diff line change @@ -282,7 +282,7 @@ DBI DSN. Some examples:
282282 | URI | DSN |
283283 |--------------------------------------+--------------------------------------------------|
284284 | db:pg:try | dbi:Pg:dbname=try |
285- | db:mysql://localhost:33/foo | dbi:mysql :host=localhost;port=33;database=foo |
285+ | db:mysql://localhost:33/foo | dbi:MariaDB :host=localhost;port=33;database=foo |
286286 | db:db2://localhost:33/foo | dbi:DB2:HOSTNAME=localhost;PORT=33;DATABASE=foo |
287287 | db:vertica:dbadmin | dbi:ODBC:DSN=dbadmin |
288288 | db:mssql://foo.com/pubs?Driver=MSSQL | dbi:ODBC:Host=foo.com;Database=pubs;Driver=MSSQL |
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ use base 'URI::_db';
33our $VERSION = ' 0.23' ;
44
55sub default_port { 3306 }
6- sub dbi_driver { ' mysql ' }
6+ sub dbi_driver { ' MariaDB ' }
77sub canonical_engine { ' mysql' }
88
99sub _dbi_param_map {
Original file line number Diff line number Diff line change @@ -194,13 +194,13 @@ for my $spec (
194194 },
195195 {
196196 uri => ' db:mysql://localhost:33/foo' ,
197- dsn => ' dbi:mysql :host=localhost;port=33;database=foo' ,
197+ dsn => ' dbi:MariaDB :host=localhost;port=33;database=foo' ,
198198 dbi => [ [host => ' localhost' ], [port => 33], [database => ' foo' ] ],
199199 qry => [],
200200 },
201201 {
202202 uri => ' db:mariadb://localhost:33/foo' ,
203- dsn => ' dbi:mysql :host=localhost;port=33;database=foo' ,
203+ dsn => ' dbi:MariaDB :host=localhost;port=33;database=foo' ,
204204 dbi => [ [host => ' localhost' ], [port => 33], [database => ' foo' ] ],
205205 qry => [],
206206 },
You can’t perform that action at this time.
0 commit comments