Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this->m_query.prepare(
- "INSERT OR REPLACE INTO person (id, frID, " + fieldCommaSeparated + ") "
- "VALUES ((SELECT id FROM person where frID = :frID), :frID, " + fieldCommaSeparatedWithColon + ")"
- );
- const int& frID = this->m_outputStructure.getFRID(0);
- this->m_query.bindValue(":frID", frID);
- i = this->m_databaseHashMap.constBegin();
- while (i != this->m_databaseHashMap.constEnd()) {
- this->m_query.bindValue(":" + i.key(), QString(i.value()));
- ++i;
- }
Add Comment
Please, Sign In to add comment