1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 22:26:32 +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 " 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 + "%" );
query.exec(); query.exec();
} }
while( query.next() ) while( query.next() )
{ {
qDebug() << query.value( 0 ).toString();
mtimes.insert( query.value( 0 ).toString(), query.value( 1 ).toUInt() ); mtimes.insert( query.value( 0 ).toString(), query.value( 1 ).toUInt() );
} }