Skip to content

Commit

Permalink
Fix for ticket #153.
Browse files Browse the repository at this point in the history
The attribute table was failing to display the contents of the last column
in a table for tables where the geometry column was not the last
in the table.


git-svn-id: http://svn.osgeo.org/qgis/trunk@5552 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Jun 27, 2006
1 parent 36c5e22 commit c8e5725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -734,7 +734,7 @@ void QgsPostgresProvider::getFeatureAttributes(int key, int &row, QgsFeature *f)
#endif
PGresult *attr = PQexec(connection, (const char *)(sql.utf8()));

for (int i = 0; i < fieldCount(); i++) {
for (int i = 0; i < PQntuples(attr); i++) {
QString fld = PQfname(attr, i);
// Dont add the WKT representation of the geometry column to the identify
// results
Expand Down

0 comments on commit c8e5725

Please sign in to comment.