Skip to content
Permalink
Browse files
fix for #860
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7756 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Dec 10, 2007
1 parent c32f209 commit a12d7a9baaccead470f7adb9d301fc02745191c5
Showing with 5 additions and 2 deletions.
  1. +4 −1 src/providers/postgres/qgspostgresprovider.cpp
  2. +1 −1 src/providers/postgres/qgspostgresprovider.h
@@ -137,6 +137,9 @@ const QString POSTGRES_DESCRIPTION = "PostgreSQL/PostGIS data provider";
}
PQclear(schema);

if(mSchemaName=="")
mSchemaName=mCurrentSchema;

if (!getGeometryDetails()) // gets srid and geometry type
{
// the table is not a geometry table
@@ -2515,7 +2518,7 @@ bool QgsPostgresProvider::getGeometryDetails()

PGresult *result = executeDbCommand(connection, sql);

QgsDebugMsg("geometry column query returned " + QString(PQntuples(result)));
QgsDebugMsg("geometry column query returned " + QString::number(PQntuples(result)));
QgsDebugMsg("column number of srid is " + QString::number(PQfnumber(result, "srid")));

if (PQntuples(result) > 0)
@@ -374,7 +374,7 @@ class QgsPostgresProvider:public QgsVectorDataProvider
*/
QString mCurrentSchema;
/**
* SQL statement used to limit the features retreived
* SQL statement used to limit the features retrieved
*/
QString sqlWhereClause;
/**

0 comments on commit a12d7a9

Please sign in to comment.