Skip to content

Commit

Permalink
fix #1897
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@11514 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Aug 26, 2009
1 parent c7019aa commit f84685c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions src/app/qgsnewconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
* *
***************************************************************************/
/* $Id$ */
#include <iostream>

#include <QSettings>
#include <QMessageBox>
Expand Down Expand Up @@ -132,8 +131,6 @@ void QgsNewConnection::testConnection()
}
// free pg connection resources
PQfinish( pd );


}

void QgsNewConnection::saveConnection()
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/spit/qgsspit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ void QgsSpit::dbConnect()
}
}

QString schemaSql = QString( "select nspname from pg_namespace,pg_user where nspowner=usesysid and usename=%1" )
QString schemaSql = QString( "select nspname from pg_namespace where has_schema_privilege(nspname, 'CREATE')" )
.arg( QgsPgUtil::quotedValue( username ) );
PGresult *schemas = PQexec( conn, schemaSql.toUtf8() );
// get the schema names
Expand Down
1 change: 0 additions & 1 deletion src/plugins/spit/qgsspitplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
/* $Id$ */

// includes
#include <iostream>
#include <vector>

#include <QAction>
Expand Down

0 comments on commit f84685c

Please sign in to comment.