Ticket #5130: 5130-v1.patch

File 5130-v1.patch, 683 bytes (added by danielk, 12 years ago)

patch to address problem

  • programs/mythbackend/scheduler.cpp

     
    24482448        gettimeofday(&dbstart, NULL);
    24492449        MSqlQuery result(dbConn);
    24502450        result.prepare(query);
    2451         result.bindValues(bindings);
     2451
     2452        MSqlBindings::const_iterator it;
     2453        for (it = bindings.begin(); it != bindings.end(); ++it)
     2454        {
     2455            if (query.contains(it.key()))
     2456                result.bindValue(it.key(), it.value());
     2457        }
     2458
    24522459        result.exec();
    24532460        gettimeofday(&dbend, NULL);
    24542461