[QGIS Commit] r15037 - trunk/qgis/src/providers/postgres

svn_qgis at osgeo.org svn_qgis at osgeo.org
Thu Jan 13 17:37:41 EST 2011


Author: jef
Date: 2011-01-13 14:37:41 -0800 (Thu, 13 Jan 2011)
New Revision: 15037

Modified:
   trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp
Log:
followup on r15028: more postgis st_ fixes

Modified: trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp
===================================================================
--- trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp	2011-01-13 21:02:06 UTC (rev 15036)
+++ trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp	2011-01-13 22:37:41 UTC (rev 15037)
@@ -372,7 +372,7 @@
   }
   else if ( type == "geometry" )
   {
-    return QString( "asewkt(%1)" ).arg( quotedIdentifier( fld.name() ) );
+    return QString( "st_asewkt(%1)" ).arg( quotedIdentifier( fld.name() ) );
   }
   else if ( type == "geography" )
   {
@@ -407,7 +407,7 @@
       }
       else
       {
-        query += QString( ",asbinary(%1,'%2')" )
+        query += QString( ",st_asbinary(%1,'%2')" )
                  .arg( quotedIdentifier( geometryColumn ) )
                  .arg( endianString() );
       }



More information about the QGIS-commit mailing list