mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-21 16:29:43 +01:00
* Fixed compiling on OSX.
This commit is contained in:
parent
3e1a5c15c5
commit
2673645907
@ -22,9 +22,9 @@
|
||||
|
||||
#include <QSqlError>
|
||||
#include <QTime>
|
||||
#include <QVariant>
|
||||
|
||||
#define QUERY_THRESHOLD 60
|
||||
#define QUERY_ANALYZE 1
|
||||
|
||||
|
||||
TomahawkSqlQuery::TomahawkSqlQuery()
|
||||
@ -59,7 +59,7 @@ TomahawkSqlQuery::exec()
|
||||
|
||||
int e = t.elapsed();
|
||||
bool log = ( e >= QUERY_THRESHOLD );
|
||||
#ifdef QUERY_ANALYZE
|
||||
#ifdef TOMAHAWK_QUERY_ANALYZE
|
||||
log = true;
|
||||
#endif
|
||||
|
||||
@ -76,7 +76,7 @@ TomahawkSqlQuery::showError()
|
||||
tLog() << "\n" << "*** DATABASE ERROR ***" << "\n"
|
||||
<< this->lastQuery() << "\n"
|
||||
<< "boundValues:" << this->boundValues() << "\n"
|
||||
<< this->lastError().text() << "\n"
|
||||
;
|
||||
<< this->lastError().text() << "\n";
|
||||
|
||||
Q_ASSERT( false );
|
||||
}
|
||||
|
@ -23,6 +23,8 @@
|
||||
|
||||
#include <QSqlQuery>
|
||||
|
||||
#define TOMAHAWK_QUERY_ANALYZE 1
|
||||
|
||||
class TomahawkSqlQuery : public QSqlQuery
|
||||
{
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user