Skip to content

Commit

Permalink
Sort schema list in SPIT plugin. Patch provided by Horst Duester
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Feb 22, 2012
1 parent 083e4c7 commit b67a6f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/spit/qgsspit.cpp
Expand Up @@ -476,7 +476,7 @@ void QgsSpit::dbConnect()
}
}

QString schemaSql = "select nspname from pg_namespace where has_schema_privilege(nspname, 'CREATE')";
QString schemaSql = "select nspname from pg_namespace where has_schema_privilege(nspname, 'CREATE') order by nspname";
PGresult *schemas = PQexec( conn, schemaSql.toUtf8() );
// get the schema names
if ( PQresultStatus( schemas ) == PGRES_TUPLES_OK )
Expand Down

0 comments on commit b67a6f1

Please sign in to comment.