Skip to content

Commit b9a630f

Browse files
author
jef
committed
followup on r15028: more postgis st_ fixes
git-svn-id: http://svn.osgeo.org/qgis/trunk@15037 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent f5fe5f7 commit b9a630f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/providers/postgres/qgspostgresprovider.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ QString QgsPostgresProvider::fieldExpression( const QgsField &fld ) const
372372
}
373373
else if ( type == "geometry" )
374374
{
375-
return QString( "asewkt(%1)" ).arg( quotedIdentifier( fld.name() ) );
375+
return QString( "st_asewkt(%1)" ).arg( quotedIdentifier( fld.name() ) );
376376
}
377377
else if ( type == "geography" )
378378
{
@@ -407,7 +407,7 @@ bool QgsPostgresProvider::declareCursor(
407407
}
408408
else
409409
{
410-
query += QString( ",asbinary(%1,'%2')" )
410+
query += QString( ",st_asbinary(%1,'%2')" )
411411
.arg( quotedIdentifier( geometryColumn ) )
412412
.arg( endianString() );
413413
}

0 commit comments

Comments
 (0)