Revision 3b82c8c0
Von Christian Ehringfeld vor etwa 8 Jahren hinzugefügt
src/queryinterpreter.cpp | ||
---|---|---|
sqlCondition += this->builder->getSeparator();
|
||
}
|
||
}
|
||
auto params = exp.getParams();
|
||
for (auto i = params.begin(); i != params.end(); ++i) {
|
||
QString key = this->generateParam(q);
|
||
expression.replace(":" + i.key(), ":" + key);
|
||
q.appendParam(key, i.value());
|
||
}
|
||
sqlCondition += expression;
|
||
q.appendParams(exp.getParams());
|
||
}
|
||
return sqlCondition;
|
||
}
|
||
|
||
QString QueryInterpreter::generateParam(Query &q) const {
|
||
return "eP" + QString::number(q.getParams().size() + 1);
|
||
}
|
Auch abrufbar als: Unified diff
some improvements