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/qgis@5184 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Apr 6, 2006
1 parent 6278c92 commit 5d92175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsdbsourceselect.cpp
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 5d92175

Please sign in to comment.