Skip to content

Commit

Permalink
Sort PostGIS layers by schema,table rather than table. Fixes issue #52.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@5184 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Apr 6, 2006
1 parent 5d68018 commit 768c876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsdbsourceselect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ bool QgsDbSourceSelect::getGeometryColumnInfo(PGconn *pg,

QString sql = "select * from geometry_columns";
// where f_table_schema ='" + settings.readEntry(key + "/database") + "'";
sql += " order by f_table_name";
sql += " order by f_table_schema,f_table_name";
//qDebug("Fetching tables using: " + sql);
PGresult *result = PQexec(pg, sql.toLocal8Bit().data());
if (result)
Expand Down

0 comments on commit 768c876

Please sign in to comment.