rahulch

Untitled

Oct 15th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. this->m_query.prepare(
  2.         "INSERT OR REPLACE INTO person (id, frID, " + fieldCommaSeparated + ") "
  3.         "VALUES ((SELECT id FROM person where frID = :frID), :frID, " + fieldCommaSeparatedWithColon + ")"
  4.     );
  5.     const int& frID = this->m_outputStructure.getFRID(0);
  6.     this->m_query.bindValue(":frID", frID);
  7.     i = this->m_databaseHashMap.constBegin();
  8.     while (i != this->m_databaseHashMap.constEnd()) {
  9.         this->m_query.bindValue(":" + i.key(), QString(QString("\"") + QString(i.value()) + QString("\"")).toUtf8().constData());
  10.         ++i;
  11.     }
Add Comment
Please, Sign In to add comment