Revision 1701766b
Von Christian Ehringfeld vor mehr als 8 Jahren hinzugefügt
src/querybuilder.cpp | ||
---|---|---|
QSharedPointer<Entity> e;
|
||
for (int var = classes.size() - 1; var >= 0; --var) {
|
||
auto metaObj = classes.at(var);
|
||
e = QSharedPointer<Entity>(EntityInstanceFactory::createInstance(
|
||
metaObj));
|
||
e = QSharedPointer<Entity>(EntityInstanceFactory::createInstance(metaObj));
|
||
if (e) {
|
||
list.append(QueryBuilder::ClassAttributes(e->getTablename(),
|
||
this->saveAttributes(entity, this->processProperties(e, usedProperties),
|
||
... | ... | |
bool ignoreID, const QString &primaryKey) const {
|
||
QString rc = "";
|
||
for (auto i = m.constBegin(); i != m.constEnd(); ++i) {
|
||
if (!ignoreID || (ignoreID && i.key() != primaryKey)) {
|
||
if (!rc.isEmpty()) {
|
||
rc += " " + conjunction + " ";
|
||
}
|
||
rc += this->schema->quoteColumnName(i.key()) + (i.value().isNull() ? " is null":"=" + this->placeHolder(i.key()));
|
||
if (!ignoreID || (ignoreID && i.key() != primaryKey)) {
|
||
if (!rc.isEmpty()) {
|
||
rc += " " + conjunction + " ";
|
||
}
|
||
rc += this->schema->quoteColumnName(i.key()) + (i.value().isNull() ? " is null"
|
||
: "=" + this->placeHolder(i.key()));
|
||
}
|
||
}
|
||
return rc;
|
||
}
|
Auch abrufbar als: Unified diff
ticket #596