Opened 18 years ago
Closed 15 years ago
#52 closed enhancement (fixed)
Change order of PostGIS Layer in Layer select box
Reported by: | Owned by: | gsherman | |
---|---|---|---|
Priority: | major: does not work as expected | Milestone: | Version 1.0.3 |
Component: | GUI | Version: | 1.0.0 |
Keywords: | Cc: | jef | |
Must Fix for Release: | No | Platform: | All |
Platform Version: | Awaiting user input: | no |
Description
In qgis/src/gui/qgsdbsourceselect.cpp change line 520 from
sql += " order by f_table_name";
to
sql += " order by f_table_schema,f_table_name";
As the result prior the schemanames will be ordered and than the tablenames. It is much more easier to find a layer.
Change History (5)
comment:1 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 17 years ago
Awaiting user input: | unset |
---|---|
Must Fix for Release: | → No |
follow-up: 5 comment:3 by , 15 years ago
Milestone: | Version 0.8 → Version 1.0.2 |
---|---|
Platform: | RedHat → All |
Resolution: | fixed |
Status: | closed → reopened |
Version: | 0.8 → 1.0.0 |
My projects use multiple geometry columns for each table, and I've noticed the geometry column having different sortings.
So naturally, please update qgis/src/app/qgsdbsourceselect.cpp:
558c558 < "order by f_table_schema,f_table_name"; --- > "order by f_table_schema,f_table_name,f_geometry_column";
Note:
See TracTickets
for help on using tickets.
Fixed in r5184