We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 5aa9ee8 commit cadf0aaCopy full SHA for cadf0aa
src/providers/postgres/qgspostgresprovider.cpp
@@ -372,7 +372,7 @@ QString QgsPostgresProvider::fieldExpression( const QgsField &fld ) const
372
}
373
else if ( type == "geometry" )
374
{
375
- return QString( "asewkt(%1)" ).arg( quotedIdentifier( fld.name() ) );
+ return QString( "st_asewkt(%1)" ).arg( quotedIdentifier( fld.name() ) );
376
377
else if ( type == "geography" )
378
@@ -407,7 +407,7 @@ bool QgsPostgresProvider::declareCursor(
407
408
else
409
410
- query += QString( ",asbinary(%1,'%2')" )
+ query += QString( ",st_asbinary(%1,'%2')" )
411
.arg( quotedIdentifier( geometryColumn ) )
412
.arg( endianString() );
413
0 commit comments