1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-17 11:30:49 +02:00

* Gather more debug to fix mtimes issue.

This commit is contained in:
Christian Muehlhaeuser
2011-04-04 10:01:14 +02:00
parent efaf180b80
commit e824fcc7b3

View File

@@ -36,17 +36,24 @@ DatabaseCommand_DirMtimes::exec( DatabaseImpl* dbi )
void
DatabaseCommand_DirMtimes::execSelect( DatabaseImpl* dbi )
{
qDebug() << Q_FUNC_INFO << m_prefix << m_update;
QMap<QString,unsigned int> mtimes;
TomahawkSqlQuery query = dbi->newquery();
if( m_prefix.isEmpty() )
{
query.exec( "SELECT name, mtime FROM dirs_scanned" );
}
else
{
query.prepare( QString( "SELECT name, mtime "
"FROM dirs_scanned "
"WHERE name LIKE :prefix" ) );
query.bindValue( ":prefix", m_prefix + "%" );
qDebug() << query.lastQuery();
query.exec();
qDebug() << query.lastQuery();
}
while( query.next() )
{