Skip to content
Permalink
Browse files
followup on r15028: more postgis st_ fixes
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15037 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Jan 13, 2011
1 parent 5aa9ee8 commit cadf0aa78b263a769674cefbe4595f0965c68049
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/postgres/qgspostgresprovider.cpp
@@ -372,7 +372,7 @@ QString QgsPostgresProvider::fieldExpression( const QgsField &fld ) const
}
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 @@ bool QgsPostgresProvider::declareCursor(
}
else
{
query += QString( ",asbinary(%1,'%2')" )
query += QString( ",st_asbinary(%1,'%2')" )
.arg( quotedIdentifier( geometryColumn ) )
.arg( endianString() );
}

0 comments on commit cadf0aa

Please sign in to comment.