Skip to content
Permalink
Browse files
Fix a couple of syntax errors in sql statements
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 2215db21fb471f1f3b70f419a330fe4bc455697d
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/qgsspatialrefsys.cpp
@@ -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())
{
@@ -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();

0 comments on commit 2215db2

Please sign in to comment.