Changeset f657e9c for src/sql


Ignore:
Timestamp:
06/22/11 21:12:32 (11 years ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master, qt5
Children:
865aab6
Parents:
51529bd
Message:

Changed UNIQUE statements in the database table definition so that they make sense for multiple conferences and do no not prevent successful imports.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sql/sqlengine.cpp

    r51529bd rf657e9c  
    117117            query.bindValue(":day_change", -QTime::fromString(aConference["timeslot_duration"],TIME_FORMAT).secsTo(QTime(0,0)));
    118118            query.bindValue(":active", confsList.count() > 0 ? 0 : 1);
    119             query.exec();
     119            if (!query.exec()) qDebug() << "Could not execute query to insert a conference:" << query.lastError();
    120120            aConference["id"] = query.lastInsertId().toString(); // 'id' is assigned automatically
    121121        }
Note: See TracChangeset for help on using the changeset viewer.