Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 4677e852

Von Christian Ehringfeld vor mehr als 8 Jahren hinzugefügt

  • ID 4677e852d618a5151f0f81f2d3d999b44c09c9dc
  • Vorgänger 86e5c917
  • Nachfolger 584721e5

fix

Unterschiede anzeigen:

src/entitymanager.cpp
bool EntityManager::create(QSharedPointer<Entity> &entity,
const bool persistRelations, const bool checkDuplicate) {
bool rc = false;
if (this->checkTable(entity) && !(checkDuplicate && this->count(entity) == 0)) {
if (this->checkTable(entity) && !(checkDuplicate && this->count(entity) > 0)) {
if (persistRelations) {
this->savePrePersistedRelations(entity);
}
src/querybuilder.cpp
QString QueryBuilder::countFunction(const QString &distinctColumn) const {
return QString(this->countKeyword() + "(" + (distinctColumn.isEmpty() ? "*" :
(this->distinct()) +
this->schema->quoteColumnName(distinctColumn)) + ")");
(this->distinct() +
this->schema->quoteColumnName(distinctColumn))) + ")");
}
QString QueryBuilder::distinct() const {

Auch abrufbar als: Unified diff