Remove call that crashes MySQL connector sometimes

It no longer is necessary anyway

Fixes https://gitlab.com/kicad/code/kicad/-/issues/12471
This commit is contained in:
Jon Evans 2022-09-23 19:28:04 -04:00
parent bd28bd7a00
commit 201b45b41a
1 changed files with 2 additions and 6 deletions

View File

@ -453,10 +453,7 @@ bool DATABASE_CONNECTION::SelectAll( const std::string& aTable, std::vector<ROW>
try try
{ {
if( !results.first() ) while( results.next() )
return false;
do
{ {
ROW result; ROW result;
@ -467,8 +464,7 @@ bool DATABASE_CONNECTION::SelectAll( const std::string& aTable, std::vector<ROW>
} }
aResults.emplace_back( std::move( result ) ); aResults.emplace_back( std::move( result ) );
}
} while( results.next() );
} }
catch( nanodbc::database_error& e ) catch( nanodbc::database_error& e )
{ {