Changeset 2dcbb2c


Ignore:
Timestamp:
08/15/11 14:41:19 (10 years ago)
Author:
gregor herrmann <gregoa@…>
Branches:
master, qt5
Children:
3a6ca60
Parents:
09a5663
Message:

Quick fix for ticket: #32: if the schedule XML doesn't contain a city, we put "n/a" there.

In the long run we might want to find a system for changing the database scheme; too bad sqlite has only limited ALTER TABLE support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sql/sqlengine.cpp

    r09a5663 r2dcbb2c  
    110110        if(!confId) // conference 'aConference' isn't in the table => insert
    111111        {
     112            // HACK
     113            // When city is empty, assign a dummy value. We probably want to find a way to change the database scheme ...
     114            // cf. #32
     115            if (aConference["city"] == "") aConference["city"] = "n/a";
     116
    112117            QSqlQuery query(db);
    113118            query.prepare("INSERT INTO CONFERENCE (title,url,subtitle,venue,city,start,end,days,"
Note: See TracChangeset for help on using the changeset viewer.