Permalink
Browse files

getDB() needs to check dbs.isalive.

  • Loading branch information...
1 parent c242532 commit 2e560d7867f68be73499d77923cfd3d133cfc4ee @jamiemccarthy jamiemccarthy committed Apr 9, 2003
Showing with 1 addition and 1 deletion.
  1. +1 −1 Slash/DB/MySQL/MySQL.pm
View
@@ -1670,7 +1670,7 @@ sub getDBs {
sub getDB {
my($self, $db_type) = @_;
my $users = $self->sqlSelectColArrayref('virtual_user', 'dbs',
- 'type=' . $self->sqlQuote($db_type));
+ 'type=' . $self->sqlQuote($db_type) . " AND isalive='yes'");
return $users->[rand @$users];
}

0 comments on commit 2e560d7

Please sign in to comment.