Fixed a yet unknown bug: The room name was not properly inserted in the room table.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Tue, 24 Sep 2013 20:56:46 +0000 (20:56 +0000)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Tue, 24 Sep 2013 20:56:46 +0000 (20:56 +0000)
src/sql/sqlengine.cpp

index 823a2b6..0c16ab7 100644 (file)
@@ -291,7 +291,7 @@ void SqlEngine::addRoomToDB(QHash<QString,QString> &aRoom) {
         query = QSqlQuery(db);
         query.prepare("INSERT INTO ROOM (xid_conference,name) VALUES (:xid_conference, :name)");
         query.bindValue(":xid_conference", aRoom["conference_id"]);
-        query.bindValue(":xid_name", aRoom["name"]);
+        query.bindValue(":name", aRoom["name"]);
         query.exec();
         emitSqlQueryError(query);
         aRoom["id"]= query.lastInsertId().toString(); // 'id' is assigned automatically