Commit e891fe0a authored by Thomas Braun's avatar Thomas Braun
Browse files

DataBase::purge_property: Add more debug output

parent 28591c9c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -538,6 +538,7 @@ void DataBase::purge_property(
    sql_query << "SELECT DISTINCT id,date FROM " << table << " WHERE " << field << "=\"" << object << "\" AND name=\""
              << name << "\" ORDER by date";

    DEBUG_STREAM << "DataBase::purge_property(): sql_query " << sql_query.str() << std::endl;
    result = query(sql_query.str(), "purge_property()", dch);
    int nb_item = mysql_num_rows(result);

@@ -545,6 +546,7 @@ void DataBase::purge_property(
    {
        // Purge
        int toDelete = nb_item - historyDepth;
        DEBUG_STREAM << "Purging " << toDelete << " elements" << std::endl;
        for(int j = 0; j < toDelete; j++)
        {
            row2 = mysql_fetch_row(result);