File tree 4 files changed +7
-4
lines changed
4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
Revision history for Perl extension URI::db.
2
2
3
3
0.23
4
+ - Changed the MySQL (and MariaDB) URI `dbi_dsn()` method to use
5
+ DBD::MariaDB instead of DBD::mysql, because it better supports older
6
+ MySQL client libraries and improves Unicode support.
4
7
5
8
0.22 2024-04-05T01:38:17Z
6
9
- 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:
282
282
| URI | DSN |
283
283
|--------------------------------------+--------------------------------------------------|
284
284
| 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 |
286
286
| db:db2://localhost:33/foo | dbi:DB2:HOSTNAME=localhost;PORT=33;DATABASE=foo |
287
287
| db:vertica:dbadmin | dbi:ODBC:DSN=dbadmin |
288
288
| 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';
3
3
our $VERSION = ' 0.23' ;
4
4
5
5
sub default_port { 3306 }
6
- sub dbi_driver { ' mysql ' }
6
+ sub dbi_driver { ' MariaDB ' }
7
7
sub canonical_engine { ' mysql' }
8
8
9
9
sub _dbi_param_map {
Original file line number Diff line number Diff line change @@ -194,13 +194,13 @@ for my $spec (
194
194
},
195
195
{
196
196
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' ,
198
198
dbi => [ [host => ' localhost' ], [port => 33], [database => ' foo' ] ],
199
199
qry => [],
200
200
},
201
201
{
202
202
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' ,
204
204
dbi => [ [host => ' localhost' ], [port => 33], [database => ' foo' ] ],
205
205
qry => [],
206
206
},
You can’t perform that action at this time.
0 commit comments