The function in QxOrm/include/QxDao is :
- Code: Select all
template <class T> inline QSqlError delete_by_query(const qx::QxSqlQuery & query, QSqlDatabase * pDatabase){
return qx::dao::QxDao_DeleteAll<T>::deleteAll(query, pDatabase);
}
If you try function with delete_by_query(query, (&db)); it will say no matching function.
In line (2) it is expecting template class T which is no-where in the expected parameters.
So, T will get unknown.
If use
directly, instead of delete_by_query(), it will workreturn qx::dao::QxDao_DeleteAll<T>::deleteAll(query, pDatabase);