File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,9 @@ const QString POSTGRES_DESCRIPTION = "PostgreSQL/PostGIS data provider";
137
137
}
138
138
PQclear (schema);
139
139
140
+ if (mSchemaName ==" " )
141
+ mSchemaName =mCurrentSchema ;
142
+
140
143
if (!getGeometryDetails ()) // gets srid and geometry type
141
144
{
142
145
// the table is not a geometry table
@@ -2515,7 +2518,7 @@ bool QgsPostgresProvider::getGeometryDetails()
2515
2518
2516
2519
PGresult *result = executeDbCommand (connection, sql);
2517
2520
2518
- QgsDebugMsg (" geometry column query returned " + QString (PQntuples (result)));
2521
+ QgsDebugMsg (" geometry column query returned " + QString::number (PQntuples (result)));
2519
2522
QgsDebugMsg (" column number of srid is " + QString::number (PQfnumber (result, " srid" )));
2520
2523
2521
2524
if (PQntuples (result) > 0 )
Original file line number Diff line number Diff line change @@ -374,7 +374,7 @@ class QgsPostgresProvider:public QgsVectorDataProvider
374
374
*/
375
375
QString mCurrentSchema ;
376
376
/* *
377
- * SQL statement used to limit the features retreived
377
+ * SQL statement used to limit the features retrieved
378
378
*/
379
379
QString sqlWhereClause;
380
380
/* *
You can’t perform that action at this time.
0 commit comments