Changeset 5e50875 in confclerk_git


Ignore:
Timestamp:
09/25/12 21:34:40 (10 years ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master, qt5
Children:
e2c612c
Parents:
9bbd5ae
Message:

Fixed: Forgot to call query.exec() at several places.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sql/sqlengine.cpp

    r9bbd5ae r5e50875  
    143143        query.bindValue(":timeslot_duration", -QTime::fromString(aConference["timeslot_duration"],TIME_FORMAT).secsTo(QTime(0,0)));
    144144        query.bindValue(":active", 1);
     145        query.exec();
    145146        emitSqlQueryError(query);
    146147        aConference["id"] = query.lastInsertId().toString(); // 'id' is assigned automatically
     
    160161        query.bindValue(":active", 1);
    161162        query.bindValue(":id", conferenceId);
     163        query.exec();
    162164        emitSqlQueryError(query);
    163165        aConference["id"] = conferenceId;
     
    264266    query.bindValue(":conference_id", aRoom["conference_id"]);
    265267    query.bindValue(":name", aRoom["name"]);
     268    query.exec();
    266269    emitSqlQueryError(query);
    267270    // now we have to check whether ROOM record with 'name' exists or not,
     
    280283        query.bindValue(":xid_conference", aRoom["conference_id"]);
    281284        query.bindValue(":xid_name", aRoom["name"]);
     285        query.exec();
    282286        emitSqlQueryError(query);
    283287        aRoom["id"]= query.lastInsertId().toString(); // 'id' is assigned automatically
     
    290294    query.bindValue(":conference_id", aRoom["conference_id"]);
    291295    query.bindValue(":event_id", aRoom["event_id"]);
     296    query.exec();
    292297    emitSqlQueryError(query);
    293298    // and insert new ones
     
    297302    query.bindValue(":event_id", aRoom["event_id"]);
    298303    query.bindValue(":room_id", aRoom["id"]);
     304    query.exec();
    299305    emitSqlQueryError(query);
    300306}
     
    309315    query.bindValue(":name", aLink["name"]);
    310316    query.bindValue(":url", aLink["url"]);
     317    query.exec();
    311318    emitSqlQueryError(query);
    312319}
Note: See TracChangeset for help on using the changeset viewer.