Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions src/util/db/fwdsqlquery.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,31 @@ class FwdSqlQuery final : protected QSqlQuery {
bindValue(placeholder, value.toVariant());
}

// Overloaded functions for all QVariant types to resolve overload conflicts
void bindValue(const QString& placeholder, const int value) {
bindValue(placeholder, QVariant(value));
}

void bindValue(const QString& placeholder, const unsigned int value) {
bindValue(placeholder, QVariant(value));
}

void bindValue(const QString& placeholder, const long long int value) {
bindValue(placeholder, QVariant(value));
}

void bindValue(const QString& placeholder, const unsigned long long int value) {
bindValue(placeholder, QVariant(value));
}

void bindValue(const QString& placeholder, const float value) {
bindValue(placeholder, QVariant(value));
}

void bindValue(const QString& placeholder, const double value) {
bindValue(placeholder, QVariant(value));
}

QString executedQuery() const {
return QSqlQuery::executedQuery();
}
Expand Down
Loading