cvmfs/catalog_rw.cc
void WritableCatalog::UpdateNestedCatalog(const string &path,
                                          const hash::Any &hash)
{
  const string sha1_str = hash.ToString();
  const string sql = "UPDATE nested_catalogs SET sha1 = :sha1 "
    "WHERE path = :path;";
  Sql stmt(database(), sql);

  bool retval =
    stmt.BindText(1, sha1_str) &&
    stmt.BindText(2, path) &&
    stmt.Execute();

  assert(retval);
}
/**
 * Updates the link to a nested catalog in the database.
 * @param path the path of the nested catalog to update
 * @param hash the hash to set the given nested catalog link to
 * @return true on success, false otherwise
 */
Updates the link to a nested catalog in the database.
@param path the path of the nested catalog to update
@param hash the hash to set the given nested catalog link to
@return true on success, false otherwise
Updates the link to a nested catalog in the database . @param path the path of the nested catalog to update @param hash the hash to set the given nested catalog link to @return true on success false otherwise
void WritableCatalog::UpdateNestedCatalog(const string &path,
                                          const hash::Any &hash)
{
  const string sha1_str = hash.ToString();
  const string sql = "UPDATE nested_catalogs SET sha1 = :sha1 "
    "WHERE path = :path;";
  Sql stmt(database(), sql);
  bool retval =
    stmt.BindText(1, sha1_str) &&
    stmt.BindText(2, path) &&
    stmt.Execute();
  assert(retval);
}
void WritableCatalog :: UpdateNestedCatalog ( const string & path , const hash :: Any & hash ) { const string sha1_str = hash . ToString ( ) ; const string sql = " " " " ; Sql stmt ( database ( ) , sql ) ; bool retval = stmt . BindText ( 1 , sha1_str ) && stmt . BindText ( 2 , path ) && stmt . Execute ( ) ; assert ( retval ) ; }
Updates the link to a nested catalog in the database.
Updates the link to a nested catalog in the database .