Skip to content

Commit

Permalink
Fix a couple of syntax errors in sql statements
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5369 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Apr 24, 2006
1 parent d733cea commit 2215db2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgsspatialrefsys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ bool QgsSpatialRefSys::createFromProj4 (const QString theProj4String)
QgsSpatialRefSys::RecordMap myRecord;
if (!mDescription.stripWhiteSpace ().isEmpty())
{
myRecord = getRecord("select * from tbl_srs where where description='" + mDescription.stripWhiteSpace () + "'");
myRecord = getRecord("select * from tbl_srs where description='" + mDescription.stripWhiteSpace () + "'");
}
if (!myRecord.empty())
{
Expand All @@ -571,7 +571,7 @@ bool QgsSpatialRefSys::createFromProj4 (const QString theProj4String)
* - if the above does not match perform a whole text search on proj4 string (if not null)
*/
QgsDebugMsg("QgsSpatialRefSys::createFromProj4 wholetext match on name failed, trying proj4string match");
myRecord = getRecord("select * from tbl_srs where where parameters='" + mProj4String.stripWhiteSpace () + "'");
myRecord = getRecord("select * from tbl_srs where parameters='" + mProj4String.stripWhiteSpace () + "'");
if (!myRecord.empty())
{
mySrsId=myRecord["srs_id"].toLong();
Expand Down

0 comments on commit 2215db2

Please sign in to comment.