Skip to content
Permalink
Browse files

fix #1897

git-svn-id: http://svn.osgeo.org/qgis/trunk@11514 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Aug 26, 2009
1 parent c7019aa commit f84685cef940175e09e1f59e1a81d37346b269af
Showing with 1 addition and 5 deletions.
  1. +0 −3 src/app/qgsnewconnection.cpp
  2. +1 −1 src/plugins/spit/qgsspit.cpp
  3. +0 −1 src/plugins/spit/qgsspitplugin.cpp
@@ -15,7 +15,6 @@
* *
***************************************************************************/
/* $Id$ */
#include <iostream>

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


}

void QgsNewConnection::saveConnection()
@@ -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
@@ -19,7 +19,6 @@
/* $Id$ */

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

#include <QAction>

0 comments on commit f84685c

Please sign in to comment.
You can’t perform that action at this time.