]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 224815: The check-in for bug 212095 (which fixed a forward-compatibility problem...
authorjustdave%syndicomm.com <>
Tue, 20 Jan 2004 11:07:41 +0000 (11:07 +0000)
committerjustdave%syndicomm.com <>
Tue, 20 Jan 2004 11:07:41 +0000 (11:07 +0000)
r= myk, bbaetz a= justdave

checksetup.pl

index b9fbf01a9e1326d69d7b7d38f582c6723f2c5e27..4dc2bf53fa9d7ad92fe1260995443225c32ac500 100755 (executable)
@@ -1610,8 +1610,14 @@ $table{tokens} =
 ###########################################################################
 
 # Get a list of the existing tables (if any) in the database
-my $sth = $dbh->table_info(undef, undef, undef, "TABLE");
-my @tables = @{$dbh->selectcol_arrayref($sth, { Columns => [3] })};
+my @tables;
+if ($DBI::VERSION < 1.20) {
+    @tables = map { $_ =~ s/.*\.//; $_ } $dbh->tables;
+}
+else {
+    my $sth = $dbh->table_info(undef, undef, undef, "TABLE");
+    @tables = @{$dbh->selectcol_arrayref($sth, { Columns => [3] })};
+}
 #print 'Tables: ', join " ", @tables, "\n";
 
 # add lines here if you add more --LOCAL-- config vars that end up in the enums:
@@ -1907,7 +1913,7 @@ sub bailout {   # this is just in case we get interrupted while getting passwd
     exit 1;
 }
 
-$sth = $dbh->prepare(<<_End_Of_SQL_);
+my $sth = $dbh->prepare(<<_End_Of_SQL_);
   SELECT login_name
   FROM profiles
   WHERE groupset=9223372036854775807