You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
auto stmt=db.open_command(sql_query); // string sql_query created with code, possible different WHERE conditions// different parameters addedif (opt_id != 0) {
stmt << opt_id;
stmt << opt_other;
} else {
stmt << opt_other;
}
// this should work
db.query(stmt,
[&](const string &field1, const string &field2, constuint64_t &field3) {
// the body of the lambda function is long and there's no need to repeat it.
});
The text was updated successfully, but these errors were encountered:
This is a SQL problem, the parameters you provided must be the same as required in the SQL. QTL directly transparently transmits your parameters to the database.
Something like this:
The text was updated successfully, but these errors were encountered: