1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-05 08:32:42 +02:00

Revert "See if this fixes lfranchi's assert"

This reverts commit e6af7b03d79abc75441f1e116ddad988907f3dc1.

Conflicts:

	src/libtomahawk/database/DatabaseImpl.cpp
This commit is contained in:
Jeff Mitchell 2012-06-26 08:19:39 -04:00
parent 31fda52bcf
commit 1369e838eb

View File

@ -328,9 +328,10 @@ DatabaseImpl::artistId( const QString& name_orig, bool autoCreate )
int id = 0;
QString sortname = DatabaseImpl::sortname( name_orig );
QString queryString = QString( "SELECT id FROM artist WHERE sortname = '%1'" ).arg( TomahawkSqlQuery::escape( sortname ) );
TomahawkSqlQuery query = newquery();
query.exec( queryString );
query.prepare( "SELECT id FROM artist WHERE sortname = ?" );
query.addBindValue( sortname );
query.exec();
if ( query.next() )
{
id = query.value( 0 ).toInt();