Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix for ticket #277 (problem loading a view of a view)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5877 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Sep 27, 2006
1 parent f2dda7f commit d226d9b
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -1413,17 +1413,22 @@ void QgsPostgresProvider::findColumns(tableCols& cols)
<< " refers to.\n";
#endif

ii = columnRelations.find(QString(ii->second.table_schema + '.' +
ii->second.table_name + '.' +
ii->second.column_name));
if (ii == columnRelations.end())
columnRelationsType::const_iterator
jj = columnRelations.find(QString(ii->second.table_schema + '.' +
ii->second.table_name + '.' +
ii->second.column_name));

if (jj == columnRelations.end())
{
std::cerr << "ERROR: Failed to find the column that "
std::cerr << "WARNING: Failed to find the column that "
<< ii->second.table_schema.local8Bit().data() << '.'
<< ii->second.table_name.local8Bit().data() << "."
<< ii->second.column_name.local8Bit().data()
<< " refers to.\n";
break;
}

ii = jj;
++count;
}

Expand Down

0 comments on commit d226d9b

Please sign in to comment.