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/qgis@11514 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Aug 26, 2009
1 parent 757a4e3 commit 2ad0d87
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
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
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
Expand Up @@ -19,7 +19,6 @@
/* $Id$ */

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

#include <QAction>
Expand Down

0 comments on commit 2ad0d87

Please sign in to comment.