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:
parent
bd28bd7a00
commit
201b45b41a
|
@ -453,10 +453,7 @@ bool DATABASE_CONNECTION::SelectAll( const std::string& aTable, std::vector<ROW>
|
|||
|
||||
try
|
||||
{
|
||||
if( !results.first() )
|
||||
return false;
|
||||
|
||||
do
|
||||
while( results.next() )
|
||||
{
|
||||
ROW result;
|
||||
|
||||
|
@ -467,8 +464,7 @@ bool DATABASE_CONNECTION::SelectAll( const std::string& aTable, std::vector<ROW>
|
|||
}
|
||||
|
||||
aResults.emplace_back( std::move( result ) );
|
||||
|
||||
} while( results.next() );
|
||||
}
|
||||
}
|
||||
catch( nanodbc::database_error& e )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue