Skip to content

Commit

Permalink
followup on r15028: more postgis st_ fixes
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@15037 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Jan 13, 2011
1 parent f5fe5f7 commit b9a630f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -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" )
{
Expand Down Expand Up @@ -407,7 +407,7 @@ bool QgsPostgresProvider::declareCursor(
}
else
{
query += QString( ",asbinary(%1,'%2')" )
query += QString( ",st_asbinary(%1,'%2')" )
.arg( quotedIdentifier( geometryColumn ) )
.arg( endianString() );
}
Expand Down

0 comments on commit b9a630f

Please sign in to comment.