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
|
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 )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue