Permalink
Browse files

Sort references by schema name and relation name

We used to sort by schema OID, and relation name for the references combobox
in the foreign key dialog. It doesn't make sense. We now sort by schema name
and relation name.

Report from Michal Kozusznik.
  • Loading branch information...
1 parent 6f8b585 commit b024f39ca705357cbd9918f64aea71c06d785226 @gleu gleu committed Dec 24, 2012
Showing with 3 additions and 1 deletion.
  1. +2 −0 CHANGELOG
  2. +1 −1 pgadmin/dlg/dlgForeignKey.cpp
View
@@ -37,6 +37,8 @@ Changes
Date Dev Ver Change details
---------- --- ------ --------------
+2012-12-24 GL 1.16.2 Sort references by schema name and relation name in
+ dlgForeignKey. Report from Michal Kozusznik.
2012-12-24 GL 1.16.2 Fix the change of the superuser attribute. Report from
Michal Kozusznik.
2012-12-18 DP 1.16.2 Prevent a crash when using Cmd-A on a file loaded into
@@ -426,7 +426,7 @@ int dlgForeignKey::Go(bool modal)
sql += wxT(" AND nsp.nspname NOT LIKE 'pg\\_temp\\_%'\n");
sql += systemRestriction +
- wxT(" ORDER BY nsp.oid, relname");
+ wxT(" ORDER BY nspname, relname");
pgSet *set = connection->ExecuteSet(sql);

0 comments on commit b024f39

Please sign in to comment.