Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 1bb76836

Von Christian Ehringfeld vor mehr als 8 Jahren hinzugefügt

  • ID 1bb7683697290a477945628126d513962de908f5
  • Vorgänger 96fcafcd
  • Nachfolger 4d57a79b

ticket #595

Unterschiede anzeigen:

src/querybuilder.cpp
const QString &conjunction,
bool ignoreID, const QString &primaryKey) const {
QString rc = "";
if (!m.isEmpty()) {
auto i = m.constBegin();
while (i != m.constEnd()) {
for (auto i = m.constBegin(); i != m.constEnd(); ++i) {
if (!ignoreID || (ignoreID && i.key() != primaryKey)) {
if (!(rc == "")) {
if (!rc.isEmpty()) {
rc += " " + conjunction + " ";
}
rc += this->schema->quoteColumnName(i.key()) + "=" + this->placeHolder(i.key());
rc += this->schema->quoteColumnName(i.key()) + (i.value().isNull() ? " is null":"=" + this->placeHolder(i.key()));
}
++i;
}
}
return rc;
}

Auch abrufbar als: Unified diff