Skip to content

Commit

Permalink
Yet another tweak to recent commits.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6159 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Dec 1, 2006
1 parent 8338cc4 commit 3527e04
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 3527e04

Please sign in to comment.