Skip to content
Permalink
Browse files

Yet another tweak to recent commits.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6159 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m
g_j_m committed Dec 1, 2006
1 parent 8338cc4 commit 3527e045bd2a8a480095621eee1d6efb6b9e6689
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/providers/postgres/qgspostgresprovider.cpp
@@ -108,14 +108,13 @@ QgsPostgresProvider::QgsPostgresProvider(QString const & uri)

// Pick up some stuff from the uri: basically two bits of text
// inside double quote marks, separated by a .
QRegExp reg("\"(.+)\"\.\"(.+)\"");
QRegExp reg("\"(.+)\"\\.\"(.+)\".+\\((.+)\\)");
reg.indexIn(mTableName);
QStringList stuff = reg.capturedTexts();

mSchemaName = stuff[1];
geometryColumn = mTableName.mid(mTableName.find(" (") + 2);
geometryColumn.truncate(geometryColumn.length() - 1);
mTableName = stuff[2];
geometryColumn = stuff[3];

// Keep a schema qualified table name for convenience later on.
if (mSchemaName.length() > 0)

0 comments on commit 3527e04

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