Use database table name instead of nickname when loading symbol

This commit is contained in:
Jon Evans 2022-08-26 19:09:59 -04:00
parent 7c6d9f67f9
commit 03bc3936c6
1 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ LIB_SYMBOL* SCH_DATABASE_PLUGIN::LoadSymbol( const wxString& aLibraryPath,
for( const DATABASE_LIB_TABLE& tableIter : m_settings->m_Tables )
{
if( tableIter.table == tableName )
if( tableIter.name == tableName )
{
table = &tableIter;
break;
@ -131,7 +131,7 @@ LIB_SYMBOL* SCH_DATABASE_PLUGIN::LoadSymbol( const wxString& aLibraryPath,
DATABASE_CONNECTION::ROW result;
if( !m_conn->SelectOne( tableName, std::make_pair( table->key_col, symbolName ), result ) )
if( !m_conn->SelectOne( table->table, std::make_pair( table->key_col, symbolName ), result ) )
{
wxLogTrace( traceDatabase, wxT( "LoadSymbol: SelectOne (%s, %s) failed" ), table->key_col,
symbolName );