1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 03:10:12 +02:00

* Forgot the wildcard match.

This commit is contained in:
Christian Muehlhaeuser
2011-04-04 09:34:17 +02:00
parent 9e20674b84
commit efaf180b80

View File

@@ -45,11 +45,12 @@ DatabaseCommand_DirMtimes::execSelect( DatabaseImpl* dbi )
query.prepare( QString( "SELECT name, mtime "
"FROM dirs_scanned "
"WHERE name LIKE :prefix" ) );
query.bindValue( ":prefix", m_prefix );
query.bindValue( ":prefix", m_prefix + "%" );
query.exec();
}
while( query.next() )
{
qDebug() << query.value( 0 ).toString();
mtimes.insert( query.value( 0 ).toString(), query.value( 1 ).toUInt() );
}