Revision 1bb76836
Von Christian Ehringfeld vor mehr als 8 Jahren hinzugefügt
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
ticket #595