Revision 38335e94
Von Christian Ehringfeld vor etwa 9 Jahren hinzugefügt
src/queryinterpreter.cpp | ||
---|---|---|
QString QueryInterpreter::buildSelect(Query &q,
|
||
const QList<Expression> &columns,
|
||
const bool &distinct, const QString &selectOption) const {
|
||
QString sqlSelect = distinct ? ("SELECT " + this->builder->distinct()) :
|
||
QString sqlSelect = distinct ? ("SELECT " + this->builder->distinct() + " ") :
|
||
"SELECT ";
|
||
if (!selectOption.isEmpty()) {
|
||
sqlSelect += this->builder->getSeparator() + selectOption + " ";
|
||
sqlSelect += selectOption + " ";
|
||
}
|
||
if (columns.isEmpty()) {
|
||
return sqlSelect + "*";
|
Auch abrufbar als: Unified diff
potential fix