Diff for /loncom/lonsql between versions 1.22 and 1.25

version 1.22, 2001/03/27 18:34:03 version 1.25, 2001/03/27 19:11:12
Line 225  sub make_new_child { Line 225  sub make_new_child {
     $queryid .= $run;      $queryid .= $run;
     print $client "$queryid\n";      print $client "$queryid\n";
           
       &logthis("QUERY: $query");
       &logthis("QUERY: $query");
       sleep 1;
             #prepare and execute the query              #prepare and execute the query
     my $sth = $dbh->prepare($query);      my $sth = $dbh->prepare($query);
     my $result;      my $result;
     my @files;      my @files;
       my $subsetflag=0;
     unless ($sth->execute())      unless ($sth->execute())
     {      {
  &logthis("<font color=blue>WARNING: Could not retrieve from database: $@</font>");   &logthis("<font color=blue>WARNING: Could not retrieve from database: $@</font>");
Line 249  sub make_new_child { Line 253  sub make_new_child {
     if ($custom) {      if ($custom) {
  &logthis("am going to do custom query for $custom");   &logthis("am going to do custom query for $custom");
  if (@files) {   if (@files) {
     @metalist=map {$perlvar{'lonDocRoot'}.$_.'meta'} @files;      @metalist=map {$perlvar{'lonDocRoot'}.$_.'.meta'} @files;
  }   }
  else {   else {
     @metalist=(); pop @metalist;      @metalist=(); pop @metalist;
     &find("$perlvar{'lonDocRoot'}/res");      &find("$perlvar{'lonDocRoot'}/res");
  }   }
  &logthis("FILELIST:" . join(":::",@metalist));  # &logthis("FILELIST:" . join(":::",@metalist));
  # if file is indicated in sql database and   # if file is indicated in sql database and
  # not part of sql-relevant query, do not pattern match.   # not part of sql-relevant query, do not pattern match.
  # if file is not in sql database, output error.   # if file is not in sql database, output error.

Removed from v.1.22  
changed lines
  Added in v.1.25


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>