Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 1bb76836

Von Christian Ehringfeld vor etwa 9 Jahren hinzugefügt

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

ticket #595

Unterschiede anzeigen:

src/entityinspector.cpp
QString typeName = QString(i.value().typeName());
if (!i.value().isWritable()) {
ok = false;
msg += "Property " + i.key() + " is not writable!\n";
msg += "Property " + i.key() + " is not writable!\n";
}
if (!i.value().isReadable()) {
ok = false;
msg += "Property " + i.key() + " is not readable!\n";
msg += "Property " + i.key() + " is not readable!\n";
}
if (typeName.contains("QSharedPointer") && !relations.contains(i.key())) {
ok = false;
msg += "For attribute " + i.key() + " is no relation defined!\n";
msg += "No relation defined for attribute " + i.key() + "!\n";
} else if (typeName.contains("QPointer")) {
ok = false;
msg += i.key() + " must use QSharedPointer.\n";
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