Skip to content

Commit

Permalink
revert r7758
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/branches/Release-0_9_1@7763 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Dec 10, 2007
1 parent 020ada7 commit 92cc42a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -137,9 +137,6 @@ 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
Expand Down Expand Up @@ -2518,7 +2515,7 @@ bool QgsPostgresProvider::getGeometryDetails()

PGresult *result = executeDbCommand(connection, sql);

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

if (PQntuples(result) > 0)
Expand Down
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresprovider.h
Expand Up @@ -374,7 +374,7 @@ class QgsPostgresProvider:public QgsVectorDataProvider
*/
QString mCurrentSchema;
/**
* SQL statement used to limit the features retrieved
* SQL statement used to limit the features retreived
*/
QString sqlWhereClause;
/**
Expand Down

0 comments on commit 92cc42a

Please sign in to comment.