[Lxr-commits] CVS: lxr/lib/LXR/Index Mysql.pm,1.18,1.19 Oracle.pm,1.7,1.8 Postgres.pm,1.17,1.18
Brought to you by:
ajlittoz
From: Malcolm B. <mb...@us...> - 2004-07-27 08:05:55
|
Update of /cvsroot/lxr/lxr/lib/LXR/Index In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5034/lib/LXR/Index Modified Files: Mysql.pm Oracle.pm Postgres.pm Log Message: Fix logic of dbprefix test so that a null prefix works properly for older installations. Index: Mysql.pm =================================================================== RCS file: /cvsroot/lxr/lxr/lib/LXR/Index/Mysql.pm,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- Mysql.pm 21 Jul 2004 20:44:31 -0000 1.18 +++ Mysql.pm 27 Jul 2004 08:05:45 -0000 1.19 @@ -40,7 +40,7 @@ || fatal "Can't open connection to database\n"; } - if ($config->{'dbprefix'}) { + if (defined($config->{'dbprefix'})) { $prefix = $config->{'dbprefix'}; } else { $prefix = "lxr_"; Index: Oracle.pm =================================================================== RCS file: /cvsroot/lxr/lxr/lib/LXR/Index/Oracle.pm,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- Oracle.pm 21 Jul 2004 20:44:31 -0000 1.7 +++ Oracle.pm 27 Jul 2004 08:05:45 -0000 1.8 @@ -38,7 +38,7 @@ { RaiseError => 1, AutoCommit => 1 }) || fatal "Can't open connection to database\n"; - if ($config->{'dbprefix'}) { + if (defined($config->{'dbprefix'})) { $prefix = $config->{'dbprefix'}; } else { $prefix = "lxr_"; Index: Postgres.pm =================================================================== RCS file: /cvsroot/lxr/lxr/lib/LXR/Index/Postgres.pm,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- Postgres.pm 21 Jul 2004 20:44:31 -0000 1.17 +++ Postgres.pm 27 Jul 2004 08:05:45 -0000 1.18 @@ -44,7 +44,7 @@ # $dbh->trace(1); - if ($config->{'dbprefix'}) { + if (defined($config->{'dbprefix'})) { $prefix = $config->{'dbprefix'}; } else { $prefix = "lxr_"; |