Skip to content

Commit 020ada7

Browse files
author
jef
committed
r7756 applied to 0.9.1 branch
git-svn-id: http://svn.osgeo.org/qgis/branches/Release-0_9_1@7758 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent ba3c6e2 commit 020ada7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/providers/postgres/qgspostgresprovider.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ const QString POSTGRES_DESCRIPTION = "PostgreSQL/PostGIS data provider";
137137
}
138138
PQclear(schema);
139139

140+
if(mSchemaName=="")
141+
mSchemaName=mCurrentSchema;
142+
140143
if (!getGeometryDetails()) // gets srid and geometry type
141144
{
142145
// the table is not a geometry table
@@ -2515,7 +2518,7 @@ bool QgsPostgresProvider::getGeometryDetails()
25152518

25162519
PGresult *result = executeDbCommand(connection, sql);
25172520

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

25212524
if (PQntuples(result) > 0)

src/providers/postgres/qgspostgresprovider.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ class QgsPostgresProvider:public QgsVectorDataProvider
374374
*/
375375
QString mCurrentSchema;
376376
/**
377-
* SQL statement used to limit the features retreived
377+
* SQL statement used to limit the features retrieved
378378
*/
379379
QString sqlWhereClause;
380380
/**

0 commit comments

Comments
 (0)