mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-17 19:37:09 +02:00
* Gather more debug to fix mtimes issue.
This commit is contained in:
@@ -36,17 +36,24 @@ DatabaseCommand_DirMtimes::exec( DatabaseImpl* dbi )
|
|||||||
void
|
void
|
||||||
DatabaseCommand_DirMtimes::execSelect( DatabaseImpl* dbi )
|
DatabaseCommand_DirMtimes::execSelect( DatabaseImpl* dbi )
|
||||||
{
|
{
|
||||||
|
qDebug() << Q_FUNC_INFO << m_prefix << m_update;
|
||||||
QMap<QString,unsigned int> mtimes;
|
QMap<QString,unsigned int> mtimes;
|
||||||
TomahawkSqlQuery query = dbi->newquery();
|
TomahawkSqlQuery query = dbi->newquery();
|
||||||
|
|
||||||
if( m_prefix.isEmpty() )
|
if( m_prefix.isEmpty() )
|
||||||
|
{
|
||||||
query.exec( "SELECT name, mtime FROM dirs_scanned" );
|
query.exec( "SELECT name, mtime FROM dirs_scanned" );
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
query.prepare( QString( "SELECT name, mtime "
|
query.prepare( QString( "SELECT name, mtime "
|
||||||
"FROM dirs_scanned "
|
"FROM dirs_scanned "
|
||||||
"WHERE name LIKE :prefix" ) );
|
"WHERE name LIKE :prefix" ) );
|
||||||
query.bindValue( ":prefix", m_prefix + "%" );
|
query.bindValue( ":prefix", m_prefix + "%" );
|
||||||
|
|
||||||
|
qDebug() << query.lastQuery();
|
||||||
query.exec();
|
query.exec();
|
||||||
|
qDebug() << query.lastQuery();
|
||||||
}
|
}
|
||||||
while( query.next() )
|
while( query.next() )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user