mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
* Fixed compiling on OSX.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user