Setup::DBIxFTSMySQL::setup argument clash
If you're going to say this in the documentation: CGI::Wiki::Setup::DBIxFTSMySQL::setup($dbname, $dbuser, $dbpass, $dbhost); then you probably want this in testlib, else it fails spectacularly: --- ../CGI-Wiki-0.50/lib/CGI/Wiki/TestLib.pm Thu Nov 20 11:13:00 2003 +++ ../CGI-Wiki-0.50-search/lib/CGI/Wiki/TestLib.pm Mon Feb 23 11:33:39 2004 @@ -202,7 +202,7 @@ or croak "Can't connect to $dbconfig{dbname} using $dsn: " . DBI->errstr; require CGI::Wiki::Setup::DBIxFTSMySQL; CGI::Wiki::Setup::DBIxFTSMySQL::setup( - @dbconfig{ qw( dbuser dbname dbpass ) } + @dbconfig{ qw( dbname dbuser dbpass dbhost ) } ); require CGI::Wiki::Search::DBIxFTS; $wiki_config{search} = CGI::Wiki::Search::DBIxFTS->new( dbh => $dbh ); -- Jenkinson's Law: It won't work.
On Mon 23 Feb 2004, Simon Cozens <simon@simon-cozens.org> wrote:
If you're going to say this in the documentation:
CGI::Wiki::Setup::DBIxFTSMySQL::setup($dbname, $dbuser, $dbpass, $dbhost);
then you probably want this in testlib, else it fails spectacularly: [...]
Good catch, fixed in CVS. Kake
participants (2)
-
Kate L Pugh -
Simon Cozens