mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-15 00:04:37 -04:00
Fix for ticket #277 (problem loading a view of a view)
git-svn-id: http://svn.osgeo.org/qgis/trunk@5877 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
00ed4f829d
commit
e642476c1c
@ -1413,17 +1413,22 @@ void QgsPostgresProvider::findColumns(tableCols& cols)
|
|||||||
<< " refers to.\n";
|
<< " refers to.\n";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ii = columnRelations.find(QString(ii->second.table_schema + '.' +
|
columnRelationsType::const_iterator
|
||||||
ii->second.table_name + '.' +
|
jj = columnRelations.find(QString(ii->second.table_schema + '.' +
|
||||||
ii->second.column_name));
|
ii->second.table_name + '.' +
|
||||||
if (ii == columnRelations.end())
|
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_schema.local8Bit().data() << '.'
|
||||||
<< ii->second.table_name.local8Bit().data() << "."
|
<< ii->second.table_name.local8Bit().data() << "."
|
||||||
<< ii->second.column_name.local8Bit().data()
|
<< ii->second.column_name.local8Bit().data()
|
||||||
<< " refers to.\n";
|
<< " refers to.\n";
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ii = jj;
|
||||||
++count;
|
++count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user