Changeset 390


Ignore:
Timestamp:
Jun 9, 2007, 5:54:08 PM (12 years ago)
Author:
Dominic Hargreaves
Message:

Add dbport functionality to MySQL backend

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki-toolkit/trunk/lib/Wiki/Toolkit/Store/MySQL.pm

    r338 r390  
    99
    1010@ISA = qw( Wiki::Toolkit::Store::Database );
    11 $VERSION = 0.03;
     11$VERSION = 0.04;
    1212
    1313=head1 NAME
     
    2727# Internal method to return the data source string required by DBI.
    2828sub _dsn {
    29     my ($self, $dbname, $dbhost) = @_;
     29    my ($self, $dbname, $dbhost, $dbport) = @_;
    3030    my $dsn = "dbi:mysql:$dbname";
    3131    $dsn .= ";host=$dbhost" if $dbhost;
     32    $dsn .= ";port=$dbport" if $dbport;
    3233    return $dsn;
    3334}
Note: See TracChangeset for help on using the changeset viewer.