@@ -62,6 +62,12 @@ void SqlQuery::BindLongLongValue(const QString &placeholder, const qint64 value)
|
||||
|
||||
}
|
||||
|
||||
void SqlQuery::BindLongLongValueOrZero(const QString &placeholder, const qint64 value) {
|
||||
|
||||
BindValue(placeholder, value <= 0 ? 0 : value);
|
||||
|
||||
}
|
||||
|
||||
void SqlQuery::BindFloatValue(const QString &placeholder, const float value) {
|
||||
|
||||
BindValue(placeholder, value <= 0 ? -1 : value);
|
||||
@@ -80,12 +86,6 @@ void SqlQuery::BindNotNullIntValue(const QString &placeholder, const int value)
|
||||
|
||||
}
|
||||
|
||||
void SqlQuery::BindNotNullLongLongValue(const QString &placeholder, const qint64 value) {
|
||||
|
||||
BindValue(placeholder, value == -1 ? QVariant() : value);
|
||||
|
||||
}
|
||||
|
||||
bool SqlQuery::Exec() {
|
||||
|
||||
bool success = exec();
|
||||
|
||||
Reference in New Issue
Block a user