Changeset 0ba2b59 in confclerk_git for src/sql/sqlengine.cpp


Ignore:
Timestamp:
09/25/12 20:25:56 (10 years ago)
Author:
gregor herrmann <gregoa@…>
Branches:
master, qt5
Children:
14c46c7
Parents:
7e45288
Message:

Don't insert empty string into picture column.

(NOT NULL constraint removed from db schema.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sql/sqlengine.cpp

    r7e45288 r0ba2b59  
    277277    {
    278278        query = QSqlQuery(db);
    279         query.prepare("INSERT INTO ROOM (xid_conference,name,picture) VALUES (:xid_conference, :name, '')");
     279        query.prepare("INSERT INTO ROOM (xid_conference,name) VALUES (:xid_conference, :name)");
    280280        query.bindValue(":xid_conference", aRoom["conference_id"]);
    281281        query.bindValue(":xid_name", aRoom["name"]);
Note: See TracChangeset for help on using the changeset viewer.