Skip to content
Permalink
Browse files
Fix for ticket #153.
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/qgis@5552 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Jun 27, 2006
1 parent b151fb2 commit 0c7401428076f628c635c5f78b2a29cfb0a919c8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/postgres/qgspostgresprovider.cpp
@@ -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

0 comments on commit 0c74014

Please sign in to comment.