IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 29, 2009, 3:15:03 PM (17 years ago)
Author:
bills
Message:

improve handling of delettion of the last fileset

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStoreServer/scripts/dsreg

    r24196 r25667  
    203203                $new_last_fs = $new_newest->{fileset_name};
    204204            } else {
    205                 $new_last_fs = "none";
     205                $new_last_fs = undef;
    206206            }
    207207            $stmt->finish();
    208             $dbh->do("UPDATE dsProduct SET last_fs = \'$new_last_fs\' WHERE prod_id = $prod_id");
     208            $dbh->do("UPDATE dsProduct SET last_fs = ? WHERE prod_id = $prod_id", undef, ($new_last_fs));
    209209        }
    210210        $dbh->commit();
Note: See TracChangeset for help on using the changeset viewer.